Execute the todo to remove an unused argument

This commit is contained in:
Alex Stokes 2019-09-10 21:01:03 -04:00
parent 4bd32cc4bc
commit cb1a25f94c
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086

View File

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