mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
refactoring stream IDs
This commit is contained in:
@ -69,7 +69,7 @@ class TCP(ITransport):
|
||||
|
||||
reader, writer = await asyncio.open_connection(host, port)
|
||||
|
||||
return RawConnection(host, port, reader, writer)
|
||||
return RawConnection(host, port, reader, writer, True)
|
||||
|
||||
def create_listener(self, handler_function, options=None):
|
||||
"""
|
||||
|
||||
@ -17,11 +17,11 @@ class TransportUpgrader():
|
||||
def upgrade_security(self):
|
||||
pass
|
||||
|
||||
def upgrade_connection(self, conn, initiator):
|
||||
def upgrade_connection(self, conn):
|
||||
"""
|
||||
upgrade raw connection to muxed connection
|
||||
"""
|
||||
|
||||
# For PoC, no security, default to mplex
|
||||
# TODO do exchange to determine multiplexer
|
||||
return Mplex(conn, initiator)
|
||||
return Mplex(conn)
|
||||
|
||||
Reference in New Issue
Block a user