Rename stream muxer initiator flags
This commit is contained in:
parent
4bda366bb8
commit
031b98ddf0
|
@ -23,7 +23,7 @@ class IMuxedConn(ABC):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def initiator(self) -> bool:
|
def is_initiator(self) -> bool:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
|
|
|
@ -68,7 +68,7 @@ class Mplex(IMuxedConn):
|
||||||
self._tasks.append(asyncio.ensure_future(self.handle_incoming()))
|
self._tasks.append(asyncio.ensure_future(self.handle_incoming()))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def initiator(self) -> bool:
|
def is_initiator(self) -> bool:
|
||||||
return self.secured_conn.initiator
|
return self.secured_conn.initiator
|
||||||
|
|
||||||
async def close(self) -> None:
|
async def close(self) -> None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user