From 061c54d3c689809a1f48030d1a5923af00c90224 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Mon, 13 Jul 2020 17:26:05 +0200 Subject: [PATCH] logging fixes --- libp2p/protocols/pubsub/gossipsub.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/protocols/pubsub/gossipsub.nim b/libp2p/protocols/pubsub/gossipsub.nim index 0ec1795a6..45bcb8676 100644 --- a/libp2p/protocols/pubsub/gossipsub.nim +++ b/libp2p/protocols/pubsub/gossipsub.nim @@ -331,7 +331,7 @@ proc handleGraft(g: GossipSub, grafts: seq[ControlGraft]): seq[ControlPrune] = for graft in grafts: let topic = graft.topicID - trace "processing graft message", topic, peer + trace "processing graft message", topic, peer = peer.id # If they send us a graft before they send us a subscribe, what should # we do? For now, we add them to mesh but don't add them to gossipsub. @@ -344,7 +344,7 @@ proc handleGraft(g: GossipSub, if g.mesh.addPeer(topic, peer): g.fanout.removePeer(topic, peer) else: - trace "Peer already in mesh", topic, peer + trace "Peer already in mesh", topic, peer = peer.id else: result.add(ControlPrune(topicID: topic)) else: