Rename stream muxer initiator flags

This commit is contained in:
Dominik Muhs 2019-10-24 19:25:34 +02:00
parent 4bda366bb8
commit 031b98ddf0
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class IMuxedConn(ABC):
@property
@abstractmethod
def initiator(self) -> bool:
def is_initiator(self) -> bool:
pass
@abstractmethod

View File

@ -68,7 +68,7 @@ class Mplex(IMuxedConn):
self._tasks.append(asyncio.ensure_future(self.handle_incoming()))
@property
def initiator(self) -> bool:
def is_initiator(self) -> bool:
return self.secured_conn.initiator
async def close(self) -> None: