Re raise cancelled error

This commit is contained in:
Arnaud 2026-06-05 18:12:14 +04:00
parent 5b37ee9210
commit 5c8391d2f6
No known key found for this signature in database
GPG Key ID: A6C7C781817146FA

View File

@ -299,6 +299,8 @@ proc tryStartingDirectConn(
let isRelayedAddr = address.contains(multiCodec("p2p-circuit"))
if not isRelayedAddr.get(false) and address.isPublicMA():
return await tryConnect(address)
except CancelledError as exc:
raise exc
except CatchableError as err:
debug "Failed to create direct connection.", description = err.msg
continue