diff --git a/libp2p/network/connection/raw_connection.py b/libp2p/network/connection/raw_connection.py index f193f43..2c710d7 100644 --- a/libp2p/network/connection/raw_connection.py +++ b/libp2p/network/connection/raw_connection.py @@ -7,7 +7,7 @@ from .raw_connection_interface import IRawConnection class RawConnection(IRawConnection): reader: asyncio.StreamReader writer: asyncio.StreamWriter - initiator: bool + is_initiator: bool _drain_lock: asyncio.Lock @@ -19,7 +19,7 @@ class RawConnection(IRawConnection): ) -> None: self.reader = reader self.writer = writer - self.initiator = initiator + self.is_initiator = initiator self._drain_lock = asyncio.Lock() diff --git a/libp2p/network/connection/raw_connection_interface.py b/libp2p/network/connection/raw_connection_interface.py index 94951af..9be5501 100644 --- a/libp2p/network/connection/raw_connection_interface.py +++ b/libp2p/network/connection/raw_connection_interface.py @@ -6,4 +6,4 @@ class IRawConnection(ReadWriteCloser): A Raw Connection provides a Reader and a Writer """ - initiator: bool + is_initiator: bool