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:06:03 +08:00 committed by GitHub
parent c252c62009
commit ffb3920468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ class FloodSub(IPubsubRouter):
origin: ID) -> Iterable[ID]: origin: ID) -> Iterable[ID]:
""" """
Get the eligible peers to send the data to. Get the eligible peers to send the data to.
:param src: the peer id of the peer who forwards the message to me. :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: the peer id of the peer who originally broadcast the message.
:return: a generator of the peer ids who we send data to. :return: a generator of the peer ids who we send data to.
""" """