Re-raise cancelled error

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

View File

@ -131,6 +131,8 @@ proc start*(s: StorageServer) {.async.} =
try:
let addrs = spr.data.addresses.mapIt(it.address)
await s.storageNode.switch.connect(spr.data.peerId, addrs)
except CancelledError as exc:
raise exc
except CatchableError as e:
warn "Cannot connect to bootstrap node", error = e.msg