mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-11 05:26:02 +00:00
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…
x
Reference in New Issue
Block a user