Encapsulate concept of a "stream id" to a "muxed" connection

This commit is contained in:
Alex Stokes
2019-08-24 21:12:08 +02:00
parent e29c1507bf
commit 9c5fb4fa5a
4 changed files with 16 additions and 20 deletions

View File

@ -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)