mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Execute the todo to remove an unused argument
This commit is contained in:
@ -58,12 +58,10 @@ class TCPListener(IListener):
|
|||||||
|
|
||||||
|
|
||||||
class TCP(ITransport):
|
class TCP(ITransport):
|
||||||
# TODO: Remove `self_id`
|
async def dial(self, maddr: Multiaddr) -> IRawConnection:
|
||||||
async def dial(self, maddr: Multiaddr, self_id: ID) -> IRawConnection:
|
|
||||||
"""
|
"""
|
||||||
dial a transport to peer listening on multiaddr
|
dial a transport to peer listening on multiaddr
|
||||||
:param maddr: multiaddr of peer
|
:param maddr: multiaddr of peer
|
||||||
:param self_id: peer_id of the dialer (to send to receiver)
|
|
||||||
:return: `RawConnection` if successful
|
:return: `RawConnection` if successful
|
||||||
"""
|
"""
|
||||||
self.host = maddr.value_for_protocol("ip4")
|
self.host = maddr.value_for_protocol("ip4")
|
||||||
|
|||||||
Reference in New Issue
Block a user