mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 07:00:54 +00:00
Move varint and delim read/write to toplevel
To `libp2p.utils`.
This commit is contained in:
@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user