mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-06-30 13:29:37 +00:00
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:
parent
5e6be10c8e
commit
94f7b51317
@ -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 =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user