waku/api: point relay push handler at the renamed rln module

master renamed waku_rln_relay -> rln (type WakuRLNRelay -> Rln, node
field node.rln), so publish.nim's stale import broke the build when the
branch was rebased. Use the rln module and Rln type so relayPushHandler
resolves against current master.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Ivan FB 2026-06-30 14:08:40 +02:00
parent 5e6be10c8e
commit 94f7b51317
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270

View File

@ -18,7 +18,7 @@ import
node/waku_node,
node/peer_manager,
waku_relay/protocol,
waku_rln_relay/rln_relay,
rln,
waku_lightpush/common,
waku_lightpush/rpc,
waku_lightpush/client,
@ -41,10 +41,10 @@ proc relayPushHandler*(self: Waku): PushMessageHandler =
## Builds the relay publish handler (appending an RLN proof when RLN is
## mounted) used by the send pipeline. Caller ensures relay is mounted.
let rln =
if self.node.wakuRlnRelay.isNil():
none[WakuRLNRelay]()
if self.node.rln.isNil():
none[Rln]()
else:
some(self.node.wakuRlnRelay)
some(self.node.rln)
return getRelayPushHandler(self.node.wakuRelay, rln)
proc lightpushPeerAvailable*(self: Waku, shard: PubsubTopic): bool =