Update libp2p/pubsub/gossipsub.py

Co-Authored-By: Kevin Mai-Husan Chia <mhchia@users.noreply.github.com>
pull/373/head
NIC Lin 2019-12-07 15:46:42 +08:00 committed by GitHub
parent 2d3bfc8184
commit a675da52ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class GossipSub(IPubsubRouter):
gossipsub_peers = self.mesh[topic]
else:
# When we publish to a topic that we have not subscribe to, we randomly pick
# `self.degree` number of peers who have subscribe to the topic and add them
# `self.degree` number of peers who have subscribed to the topic and add them
# as our `fanout` peers.
topic_in_fanout: bool = topic in self.fanout
fanout_peers: List[ID] = self.fanout[topic] if topic_in_fanout else []