mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 23:51:07 +00:00
upgrade connection
This commit is contained in:
@ -43,7 +43,7 @@ class Swarm(INetwork):
|
||||
raw_conn = self.transport.dial(first_addr)
|
||||
|
||||
# Use upgrader to upgrade raw conn to muxed conn
|
||||
muxed_conn = self.upgrader.upgrade_connection(raw_conn)
|
||||
muxed_conn = self.upgrader.upgrade_connection(raw_conn, True)
|
||||
|
||||
# Store muxed connection in connections
|
||||
self.connections[peer_id] = muxed_conn
|
||||
|
||||
Reference in New Issue
Block a user