mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Introduces IO abstractions apart from asyncio or those attached to IRawConnection
Also adds `msgio` utilities to mirror the Go implementation
This commit is contained in:
@ -31,7 +31,7 @@ class BaseSession(ISecureConn):
|
||||
self.remote_permanent_pubkey = None
|
||||
|
||||
self.conn = conn
|
||||
self.initiator = self.conn.initiator
|
||||
self.initiator = peer_id is not None
|
||||
|
||||
async def write(self, data: bytes) -> None:
|
||||
await self.conn.write(data)
|
||||
|
||||
Reference in New Issue
Block a user