mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
make stream close async
This commit is contained in:
parent
01daf8ae8a
commit
96edf96e76
@ -34,10 +34,10 @@ class NetStream(INetStream):
|
||||
"""
|
||||
return await self.muxed_stream.write(data)
|
||||
|
||||
def close(self):
|
||||
async def close(self):
|
||||
"""
|
||||
close stream
|
||||
:return: true if successful
|
||||
"""
|
||||
self.muxed_stream.close()
|
||||
await self.muxed_stream.close()
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user