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

@ -17,7 +17,6 @@ class IMuxedConn(ABC):
reference: https://github.com/libp2p/go-stream-muxer/blob/master/muxer.go
"""
initiator: bool
peer_id: ID
@abstractmethod
@ -35,6 +34,11 @@ class IMuxedConn(ABC):
:param peer_id: peer_id of peer the connection is to
"""
@property
@abstractmethod
def initiator(self) -> bool:
pass
@abstractmethod
def close(self) -> None:
"""