mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Encapsulate concept of a "stream id" to a "muxed" connection
This commit is contained in:
@ -30,10 +30,6 @@ class BaseSession(ISecureConn):
|
||||
|
||||
self.initiator = self.conn.initiator
|
||||
|
||||
# TODO clean up how this is passed around?
|
||||
def next_stream_id(self) -> int:
|
||||
return self.conn.next_stream_id()
|
||||
|
||||
async def write(self, data: bytes) -> None:
|
||||
await self.conn.write(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user