mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-03-04 01:50:36 +00:00
move store muxer
This commit is contained in:
parent
676786b00e
commit
6e2c173848
@ -73,9 +73,6 @@ proc mux*(
|
|||||||
|
|
||||||
self.connManager.storeConn(conn)
|
self.connManager.storeConn(conn)
|
||||||
|
|
||||||
# store it in muxed connections if we have a peer for it
|
|
||||||
self.connManager.storeMuxer(muxer, muxer.handle()) # store muxer and start read loop
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await self.identify(muxer)
|
await self.identify(muxer)
|
||||||
except CatchableError as exc:
|
except CatchableError as exc:
|
||||||
@ -84,6 +81,9 @@ proc mux*(
|
|||||||
# loop
|
# loop
|
||||||
debug "Could not identify connection", conn, msg = exc.msg
|
debug "Could not identify connection", conn, msg = exc.msg
|
||||||
|
|
||||||
|
# store it in muxed connections if we have a peer for it
|
||||||
|
self.connManager.storeMuxer(muxer, muxer.handle()) # store muxer and start read loop
|
||||||
|
|
||||||
return muxer
|
return muxer
|
||||||
|
|
||||||
method upgradeOutgoing*(
|
method upgradeOutgoing*(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user