mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 15:10:54 +00:00
Fix on type hints
This commit is contained in:
@ -109,8 +109,7 @@ class GossipSub(IPubsubRouter):
|
||||
# TODO: Start after delay
|
||||
asyncio.ensure_future(self.heartbeat())
|
||||
|
||||
# FIXME: Shoudl be changed to type 'peer.ID'
|
||||
def add_peer(self, peer_id: str, protocol_id: str) -> None:
|
||||
def add_peer(self, peer_id: ID, protocol_id: str) -> None:
|
||||
"""
|
||||
Notifies the router that a new peer has been connected
|
||||
:param peer_id: id of peer to add
|
||||
|
||||
Reference in New Issue
Block a user