Update libp2p/pubsub/pubsub.py

Co-Authored-By: NIC Lin <twedusuck@gmail.com>
This commit is contained in:
Kevin Mai-Husan Chia 2019-09-04 20:32:43 +08:00 committed by GitHub
parent 46c13ee1c0
commit 5113785543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,7 +228,7 @@ class Pubsub:
# Send hello packet
hello = self.get_hello_packet()
await stream.write(encode_varint_prefixed(hello.SerializeToString()))
# TODO: Check EOF in the future in the stream's lifetime.
# TODO: Check EOF of this stream.
# TODO: Check if the peer in black list.
self.router.add_peer(peer_id, stream.get_protocol())