Reflect PR feedback

* Rename `src` to `msg_forwarder` in pubsub/floodsub/gossipsub
* Rename Variables
* Sort imports
* Clean up
This commit is contained in:
mhchia
2019-07-29 12:09:35 +08:00
parent 74d831d4e2
commit f02d38c0ee
12 changed files with 54 additions and 55 deletions

View File

@ -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
"""