mirror of https://github.com/status-im/nim-eth.git
Fix minor exception effect issues (#335)
Makes code compatible with https://github.com/status-im/nim-chronos/pull/166 without requiring it.
This commit is contained in:
parent
be5e088b21
commit
16802c0e52
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue