From 1d206a5f5e89f7bac855bfd2e25066bcf1187ade Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Thu, 19 Dec 2024 22:57:30 +0100 Subject: [PATCH] libwaku avoid nonsense onReceivedMessage cb in waku_relay_publish --- library/libwaku.nim | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/library/libwaku.nim b/library/libwaku.nim index 89d4aaa6d..a47315722 100644 --- a/library/libwaku.nim +++ b/library/libwaku.nim @@ -297,12 +297,7 @@ proc waku_relay_publish( handleRequest( ctx, RequestType.RELAY, - RelayRequest.createShared( - RelayMsgType.PUBLISH, - PubsubTopic($pst), - WakuRelayHandler(onReceivedMessage(ctx)), - wakuMessage, - ), + RelayRequest.createShared(RelayMsgType.PUBLISH, PubsubTopic($pst), nil, wakuMessage), callback, userData, )