Fix interop-tests Future is nil crash introduced by changes in this PR

This commit is contained in:
Fabiana Cecin 2026-02-27 14:56:16 -03:00
parent 964f0e131a
commit e746f43081
No known key found for this signature in database
GPG Key ID: BCAB8A55CB51B6C7

View File

@ -154,15 +154,9 @@ proc new*(T: typedesc[RecvService], node: WakuNode, s: SubscriptionService): T =
recentReceivedMsgs: @[],
)
if not node.wakuFilterClient.isNil():
let filterPushHandler = proc(
pubsubTopic: PubsubTopic, message: WakuMessage
) {.async, closure.} =
## Captures all the messages received through filter
# TODO: re-enable for MAPI edge support.
#recvService.processIncomingMessageOfInterest(pubSubTopic, message)
node.wakuFilterClient.registerPushHandler(filterPushHandler)
# TODO: For MAPI Edge support, either call node.wakuFilterClient.registerPushHandler
# so that the RecvService listens to incoming filter messages,
# or have the filter client emit MessageSeenEvent.
return recvService