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