Merge branch 'master' into fix/change-notifee-and-add-tests-for-swarm-conn-and-mplex

This commit is contained in:
mhchia
2019-09-24 13:50:54 +08:00
21 changed files with 62 additions and 16 deletions

View File

@ -195,7 +195,11 @@ class Pubsub:
# Ref: https://developers.google.com/protocol-buffers/docs/reference/python-generated#singular-fields-proto2 # noqa: E501
if rpc_incoming.HasField("control"):
# Pass rpc to router so router could perform custom logic
logger.debug("received `control` message %s from peer %s", peer_id)
logger.debug(
"received `control` message %s from peer %s",
rpc_incoming.control,
peer_id,
)
await self.router.handle_rpc(rpc_incoming, peer_id)
# Force context switch