From 9b815efe8fe70dfaea5b4c101d47844cbd811337 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Fri, 4 Sep 2020 22:53:03 +0200 Subject: [PATCH] gossipsub: don't subscribe to floodsub also (#352) --- libp2p/protocols/pubsub/gossipsub.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libp2p/protocols/pubsub/gossipsub.nim b/libp2p/protocols/pubsub/gossipsub.nim index 52ee8b878..2bdd9a8eb 100644 --- a/libp2p/protocols/pubsub/gossipsub.nim +++ b/libp2p/protocols/pubsub/gossipsub.nim @@ -283,7 +283,8 @@ method subscribeTopic*(g: GossipSub, topic: string, subscribe: bool, peer: PubSubPeer) {.gcsafe.} = - procCall FloodSub(g).subscribeTopic(topic, subscribe, peer) + # Skip floodsub - we don't want it to add the peer to `g.floodsub` + procCall PubSub(g).subscribeTopic(topic, subscribe, peer) logScope: peer = $peer.id