Remove initiator in Mplex

Besides, fix the wrong passed `multi_addr` to `mplex_stream`.
This commit is contained in:
mhchia
2019-08-16 17:01:27 +08:00
parent 8217319c28
commit 7bc363f2fa
3 changed files with 9 additions and 4 deletions

View File

@ -145,6 +145,7 @@ class Swarm(INetwork):
# Use muxed conn to open stream, which returns
# a muxed stream
# TODO: Remove protocol id from being passed into muxed_conn
# FIXME: Remove multiaddr from being passed into muxed_conn
muxed_stream = await muxed_conn.open_stream(protocol_ids[0], multiaddr)
# Perform protocol muxing to determine protocol to use