await connection

This commit is contained in:
Dmitriy Ryajov 2020-02-25 17:21:12 -06:00
parent 946b9580c0
commit 85d4baca95
1 changed files with 1 additions and 1 deletions

View File

@ -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")