diff --git a/libp2p/switch.nim b/libp2p/switch.nim index 2b3411c..23648c2 100644 --- a/libp2p/switch.nim +++ b/libp2p/switch.nim @@ -355,11 +355,10 @@ proc internalConnect(s: Switch, doAssert not isNil(upgraded), "checked in upgradeOutgoing" s.connManager.storeOutgoing(upgraded) + conn = upgraded trace "dial successful", oid = $conn.oid, peerInfo = shortLog(upgraded.peerInfo) - - conn = upgraded break finally: if lock.locked():