diff --git a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim index fb0dd2b..23fad4f 100644 --- a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim +++ b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim @@ -71,7 +71,7 @@ ## more requests will be needed for a lookup (adding bandwidth and latency). ## This might be a concern for mobile devices. -{.push raises: [Defect].} +{.push raises: [].} import std/[tables, sets, options, math, sequtils, algorithm, strutils], diff --git a/libp2pdht/private/eth/p2p/discoveryv5/transport.nim b/libp2pdht/private/eth/p2p/discoveryv5/transport.nim index 2cf48df..f9d6d16 100644 --- a/libp2pdht/private/eth/p2p/discoveryv5/transport.nim +++ b/libp2pdht/private/eth/p2p/discoveryv5/transport.nim @@ -36,7 +36,7 @@ type proc sendToA(t: Transport, a: Address, data: seq[byte]) = let ta = initTAddress(a.ip, a.port) let f = t.transp.sendTo(ta, data) - f.callback = proc(data: pointer) {.gcsafe.} = + f.callback = proc(data: pointer) {.gcsafe, raises: [].} = if f.failed: # Could be `TransportUseClosedError` in case the transport is already # closed, or could be `TransportOsError` in case of a socket error.