Move varint and delim read/write to toplevel

To `libp2p.utils`.
This commit is contained in:
mhchia
2019-08-17 00:19:37 +08:00
parent 5192944724
commit a0923d202a
6 changed files with 44 additions and 21 deletions

View File

@ -62,6 +62,7 @@ class TCPListener(IListener):
class TCP(ITransport):
# TODO: Remove `self_id`
async def dial(self, maddr: Multiaddr, self_id: ID) -> IRawConnection:
"""
dial a transport to peer listening on multiaddr