Fix after rebase

This commit is contained in:
NIC619
2019-07-30 17:31:08 +08:00
parent e53727d301
commit c4105688d1
13 changed files with 52 additions and 51 deletions

View File

@ -41,9 +41,8 @@ class IPubsubRouter(ABC):
:param peer_id: id of peer to remove
"""
# FIXME: Should be changed to type 'peer.ID'
@abstractmethod
async def handle_rpc(self, rpc: rpc_pb2.ControlMessage, sender_peer_id: str) -> None:
async def handle_rpc(self, rpc: rpc_pb2.ControlMessage, sender_peer_id: ID) -> None:
"""
Invoked to process control messages in the RPC envelope.
It is invoked after subscriptions and payload messages have been processed