mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-04-02 12:01:27 +00:00
Change SwarmConn.conn to muxed_conn
This commit is contained in:
@ -155,7 +155,7 @@ async def mplex_conn_pair_factory(is_secure: bool) -> Tuple[Mplex, Swarm, Mplex,
|
||||
conn_0, swarm_0, conn_1, swarm_1 = await swarm_conn_pair_factory(
|
||||
is_secure, muxer_opt=muxer_opt
|
||||
)
|
||||
return conn_0.conn, swarm_0, conn_1.conn, swarm_1
|
||||
return conn_0.muxed_conn, swarm_0, conn_1.muxed_conn, swarm_1
|
||||
|
||||
|
||||
async def mplex_stream_pair_factory(
|
||||
|
||||
@ -53,8 +53,8 @@ async def perform_simple_test(
|
||||
node2_conn = node2.get_network().connections[peer_id_for_node(node1)]
|
||||
|
||||
# Perform assertion
|
||||
assertion_func(node1_conn.conn.secured_conn)
|
||||
assertion_func(node2_conn.conn.secured_conn)
|
||||
assertion_func(node1_conn.muxed_conn.secured_conn)
|
||||
assertion_func(node2_conn.muxed_conn.secured_conn)
|
||||
|
||||
# Success, terminate pending tasks.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user