mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Add call to wait_closed method of asyncio.StreamWriter
This commit is contained in:
@ -36,8 +36,8 @@ class BaseSession(ISecureConn):
|
||||
async def read(self, n: int = -1) -> bytes:
|
||||
return await self.conn.read(n)
|
||||
|
||||
def close(self) -> None:
|
||||
self.conn.close()
|
||||
async def close(self) -> None:
|
||||
await self.conn.close()
|
||||
|
||||
def get_local_peer(self) -> ID:
|
||||
return self.local_peer
|
||||
|
||||
Reference in New Issue
Block a user