Address review comments
This commit is contained in:
parent
454f658ba8
commit
77e866d29a
|
@ -199,7 +199,7 @@ proc dial*(s: Switch,
|
|||
let id = peer.id
|
||||
trace "Dialing peer", peer = id
|
||||
result = s.connections.getOrDefault(id)
|
||||
if result == nil or result.closed:
|
||||
if result.isNil or result.closed:
|
||||
for t in s.transports: # for each transport
|
||||
for a in peer.addrs: # for each address
|
||||
if t.handles(a): # check if it can dial it
|
||||
|
|
Loading…
Reference in New Issue