File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,10 @@ impl Context {
314
314
315
315
pub ( crate ) async fn maybe_add_gossip_peer ( & self , topic : TopicId , peer : NodeAddr ) -> Result < ( ) > {
316
316
if let Some ( iroh) = & * self . iroh . read ( ) . await {
317
- info ! ( self , "Adding (maybe existing) peer to gossip: {peer:?}" ) ;
317
+ info ! (
318
+ self ,
319
+ "Adding (maybe existing) peer with id {} to gossip" , peer. node_id
320
+ ) ;
318
321
iroh. maybe_add_gossip_peer ( topic, peer) . await ?;
319
322
}
320
323
Ok ( ( ) )
@@ -352,12 +355,13 @@ pub async fn add_gossip_peer_from_header(
352
355
return Ok ( ( ) ) ;
353
356
}
354
357
358
+ let node_addr =
359
+ serde_json:: from_str :: < NodeAddr > ( node_addr) . context ( "Failed to parse node address" ) ?;
360
+
355
361
info ! (
356
362
context,
357
- "Adding iroh peer with address {node_addr:? } to the topic of {instance_id}."
363
+ "Adding iroh peer with node id { } to the topic of {instance_id}." , node_addr . node_id
358
364
) ;
359
- let node_addr =
360
- serde_json:: from_str :: < NodeAddr > ( node_addr) . context ( "Failed to parse node address" ) ?;
361
365
362
366
context. emit_event ( EventType :: WebxdcRealtimeAdvertisementReceived {
363
367
msg_id : instance_id,
You can’t perform that action at this time.
0 commit comments