gossipsub: don't subscribe to floodsub also (#352)

This commit is contained in:
Jacek Sieka 2020-09-04 22:53:03 +02:00 committed by GitHub
parent 16a008db75
commit 9b815efe8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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