mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
sync handle_rpc docstring
This commit is contained in:
@ -83,7 +83,7 @@ class IPubsubRouter(ABC):
|
|||||||
Invoked to process control messages in the RPC envelope.
|
Invoked to process control messages in the RPC envelope.
|
||||||
It is invoked after subscriptions and payload messages have been processed
|
It is invoked after subscriptions and payload messages have been processed
|
||||||
|
|
||||||
:param rpc: rpc message
|
:param rpc: RPC message
|
||||||
:param sender_peer_id: id of the peer who sent the message
|
:param sender_peer_id: id of the peer who sent the message
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@ -75,10 +75,11 @@ class FloodSub(IPubsubRouter):
|
|||||||
|
|
||||||
async def handle_rpc(self, rpc: rpc_pb2.RPC, sender_peer_id: ID) -> None:
|
async def handle_rpc(self, rpc: rpc_pb2.RPC, sender_peer_id: ID) -> None:
|
||||||
"""
|
"""
|
||||||
Invoked to process control messages in the RPC envelope. It is invoked
|
Invoked to process control messages in the RPC envelope.
|
||||||
after subscriptions and payload messages have been processed.
|
It is invoked after subscriptions and payload messages have been processed
|
||||||
|
|
||||||
:param rpc: rpc message
|
:param rpc: RPC message
|
||||||
|
:param sender_peer_id: id of the peer who sent the message
|
||||||
"""
|
"""
|
||||||
# Checkpoint
|
# Checkpoint
|
||||||
await trio.lowlevel.checkpoint()
|
await trio.lowlevel.checkpoint()
|
||||||
|
|||||||
@ -179,8 +179,8 @@ class GossipSub(IPubsubRouter, Service):
|
|||||||
|
|
||||||
async def handle_rpc(self, rpc: rpc_pb2.RPC, sender_peer_id: ID) -> None:
|
async def handle_rpc(self, rpc: rpc_pb2.RPC, sender_peer_id: ID) -> None:
|
||||||
"""
|
"""
|
||||||
Invoked to process control messages in the RPC envelope. It is invoked
|
Invoked to process control messages in the RPC envelope.
|
||||||
after subscriptions and payload messages have been processed.
|
It is invoked after subscriptions and payload messages have been processed
|
||||||
|
|
||||||
:param rpc: RPC message
|
:param rpc: RPC message
|
||||||
:param sender_peer_id: id of the peer who sent the message
|
:param sender_peer_id: id of the peer who sent the message
|
||||||
|
|||||||
Reference in New Issue
Block a user