Cleanup TODOs in pubsub

pull/373/head
NIC619 2019-11-30 17:12:37 +08:00
parent dfdcf524b7
commit e59ac6a250
No known key found for this signature in database
GPG Key ID: 570C35F5C2D51B17
1 changed files with 0 additions and 3 deletions

View File

@ -78,7 +78,6 @@ class Pubsub:
topic_validators: Dict[str, TopicValidator]
# TODO: Be sure it is increased atomically everytime.
counter: int # uint64
_tasks: List["asyncio.Future[Any]"]
@ -300,7 +299,6 @@ class Pubsub:
logger.debug("Fail to add new peer %s: stream closed", peer_id)
del self.peers[peer_id]
return
# TODO: Check EOF of this stream.
# TODO: Check if the peer in black list.
try:
self.router.add_peer(peer_id, stream.get_protocol())
@ -328,7 +326,6 @@ class Pubsub:
"""
Continuously read from peer queue and each time a new peer is found,
open a stream to the peer using a supported pubsub protocol
TODO: Handle failure for when the peer does not support any of the
pubsub protocols we support
"""
while True: