gossipsub: don't subscribe to floodsub also (#352)
This commit is contained in:
parent
16a008db75
commit
9b815efe8f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue