Add some loggings to swarm and cosmetic updates

This commit is contained in:
NIC619
2019-09-14 21:47:49 +08:00
parent 38f4223e62
commit 786a03544c
6 changed files with 47 additions and 48 deletions

View File

@ -40,11 +40,10 @@ class INetwork(ABC):
@abstractmethod
def set_stream_handler(
self, protocol_id: TProtocol, stream_handler: StreamHandlerFn
) -> bool:
) -> None:
"""
:param protocol_id: protocol id used on stream
:param stream_handler: a stream handler instance
:return: true if successful
"""
@abstractmethod