From 85d4baca958eb3e909c9a0bcde346914c2bae602 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 25 Feb 2020 17:21:12 -0600 Subject: [PATCH] await connection --- libp2p/switch.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/switch.nim b/libp2p/switch.nim index 5d266c55d..bd713ce89 100644 --- a/libp2p/switch.nim +++ b/libp2p/switch.nim @@ -241,7 +241,7 @@ proc internalConnect(s: Switch, result = conn proc connect*(s: Switch, peer: PeerInfo) {.async.} = - var conn = s.internalConnect(peer) + var conn = await s.internalConnect(peer) if isNil(conn): raise newException(CatchableError, "Unable to connect to peer")