sync handle_rpc docstring

This commit is contained in:
pacrob
2024-12-03 11:08:32 -07:00
committed by Paul Robinson
parent f156668c1b
commit 33332d7106
3 changed files with 7 additions and 6 deletions

View File

@ -83,7 +83,7 @@ class IPubsubRouter(ABC):
Invoked to process control messages in the RPC envelope.
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
"""

View File

@ -75,10 +75,11 @@ class FloodSub(IPubsubRouter):
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
after subscriptions and payload messages have been processed.
Invoked to process control messages in the RPC envelope.
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
await trio.lowlevel.checkpoint()

View File

@ -179,8 +179,8 @@ class GossipSub(IPubsubRouter, Service):
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
after subscriptions and payload messages have been processed.
Invoked to process control messages in the RPC envelope.
It is invoked after subscriptions and payload messages have been processed
:param rpc: RPC message
:param sender_peer_id: id of the peer who sent the message