Update libp2p/pubsub/floodsub.py

Co-Authored-By: NIC Lin <twedusuck@gmail.com>
This commit is contained in:
Kevin Mai-Husan Chia 2019-07-28 16:09:01 +08:00 committed by GitHub
parent a1e20caebe
commit 70c5c84f32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ class FloodSub(IPubsubRouter):
"""
Get the eligible peers to send the data to.
:param src: peer ID of the peer who forwards the message to us
:param origin: the peer id of the peer who originally broadcast the message.
:param origin: peer id of the peer the message originate from
:return: a generator of the peer ids who we send data to.
"""
for topic in topic_ids: