Add raises annotation to the FilterMsgHandler proc type (#337)

This commit is contained in:
Kim De Mey 2021-03-25 15:06:12 +01:00 committed by GitHub
parent 0be863d2de
commit 8c27f291f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ type
## XXX: really big messages can cause excessive mem usage when using msg \ ## XXX: really big messages can cause excessive mem usage when using msg \
## count ## count
FilterMsgHandler* = proc(msg: ReceivedMessage) {.gcsafe, closure.} FilterMsgHandler* = proc(msg: ReceivedMessage) {.gcsafe, raises: [Defect].}
Filter* = object Filter* = object
src*: Option[PublicKey] src*: Option[PublicKey]