Revert "chore(libp2p): update nim-libp2p (#1786)" (#1788)

This reverts commit 93e09b8b77.
This commit is contained in:
Tanguy 2023-06-09 10:10:47 +02:00 committed by GitHub
parent 960740713c
commit 613974c1b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit eb78292d9cb2d179e00af78b7ee969eaedf1736d
Subproject commit a1eb53b1813df5d4fa1b343ef003ad9fb5ebb1d8

View File

@ -199,7 +199,7 @@ proc subscribe*(w: WakuRelay, pubsubTopic: PubsubTopic, handler: WakuRelayHandle
debug "subscribe", pubsubTopic=pubsubTopic
# we need to wrap the handler since gossipsub doesnt understand WakuMessage
let wrappedHandler = proc(pubsubTopic: string, data: seq[byte]): Future[void] {.gcsafe, raises: [].} =
let wrappedHandler = proc(pubsubTopic: string, data: seq[byte]): Future[void] {.gcsafe, raises: [Defect].} =
let decMsg = WakuMessage.decode(data)
if decMsg.isErr():
# fine if triggerSelf enabled, since validators are bypassed