From 16802c0e5218cce405cd623a554ce95549dd5181 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Tue, 23 Mar 2021 07:47:55 +0100 Subject: [PATCH] Fix minor exception effect issues (#335) Makes code compatible with https://github.com/status-im/nim-chronos/pull/166 without requiring it. --- eth/p2p/discoveryv5/protocol.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/p2p/discoveryv5/protocol.nim b/eth/p2p/discoveryv5/protocol.nim index 1071a6b..c389671 100644 --- a/eth/p2p/discoveryv5/protocol.nim +++ b/eth/p2p/discoveryv5/protocol.nim @@ -428,7 +428,7 @@ proc receive*(d: Protocol, a: Address, packet: openArray[byte]) {.gcsafe, # CatchableErrors, in fact, we really don't, but hey, they might, considering we # can't enforce it. proc processClient(transp: DatagramTransport, raddr: TransportAddress): - Future[void] {.async, gcsafe, raises: [Exception, Defect].} = + Future[void] {.async, gcsafe.} = let proto = getUserData[Protocol](transp) # TODO: should we use `peekMessage()` to avoid allocation?