mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-04-07 06:21:27 +00:00
Reflect PR feedback
* Rename `src` to `msg_forwarder` in pubsub/floodsub/gossipsub * Rename Variables * Sort imports * Clean up
This commit is contained in:
@ -42,10 +42,10 @@ class IPubsubRouter(ABC):
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
async def publish(self, src, pubsub_msg) -> None:
|
||||
async def publish(self, msg_forwarder, pubsub_msg):
|
||||
"""
|
||||
Invoked to forward a new message that has been validated
|
||||
:param src: peer_id of message sender
|
||||
:param msg_forwarder: peer_id of message sender
|
||||
:param pubsub_msg: pubsub message to forward
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user