mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Merge branch 'master' into upgrader
This commit is contained in:
@ -8,7 +8,7 @@ class Multiplex(object):
|
||||
def __init__(self, conn, initiator):
|
||||
"""
|
||||
:param conn: an instance of raw connection
|
||||
: param initiator: boolean to prevent multiplex with self
|
||||
:param initiator: boolean to prevent multiplex with self
|
||||
"""
|
||||
self.muxed_conn = MuxedConn(conn, initiator)
|
||||
|
||||
|
||||
@ -22,8 +22,7 @@ class TransportUpgrader(object):
|
||||
"""
|
||||
# For PoC, no security
|
||||
# Default to mplex
|
||||
|
||||
|
||||
# TODO do exchange to determine multiplexer
|
||||
|
||||
return MuxedConn(conn, initiator)
|
||||
|
||||
Reference in New Issue
Block a user