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:
Jacek Sieka 2021-03-23 07:47:55 +01:00 committed by GitHub
parent be5e088b21
commit 16802c0e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 # CatchableErrors, in fact, we really don't, but hey, they might, considering we
# can't enforce it. # can't enforce it.
proc processClient(transp: DatagramTransport, raddr: TransportAddress): proc processClient(transp: DatagramTransport, raddr: TransportAddress):
Future[void] {.async, gcsafe, raises: [Exception, Defect].} = Future[void] {.async, gcsafe.} =
let proto = getUserData[Protocol](transp) let proto = getUserData[Protocol](transp)
# TODO: should we use `peekMessage()` to avoid allocation? # TODO: should we use `peekMessage()` to avoid allocation?