Skip to content

Commit

Permalink
fix: subscribing to RelaydefaultHandler in libwaku (#3308)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer authored Feb 26, 2025
1 parent addce8d commit ef634c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import chronicles, chronos, stew/byteutils, results
import
../../../../../waku/waku_core/message/message,
../../../../../waku/factory/[external_config, validator_signed, waku],
../../../../../waku/waku_node,
../../../../../waku/waku_core/message,
../../../../../waku/waku_core/time, # Timestamp
../../../../../waku/waku_core/topics/pubsub_topic,
Expand Down Expand Up @@ -105,6 +106,7 @@ proc process*(
case self.operation
of SUBSCRIBE:
# TO DO: properly perform 'subscribe'
waku.node.registerRelayDefaultHandler($self.pubsubTopic)
discard waku.node.wakuRelay.subscribe($self.pubsubTopic, self.relayEventCallback)
of UNSUBSCRIBE:
# TODO: properly perform 'unsubscribe'
Expand Down
2 changes: 1 addition & 1 deletion waku/node/waku_node.nim
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ proc mountStoreSync*(

## Waku relay

proc registerRelayDefaultHandler(node: WakuNode, topic: PubsubTopic) =
proc registerRelayDefaultHandler*(node: WakuNode, topic: PubsubTopic) =
if node.wakuRelay.isSubscribed(topic):
return

Expand Down

0 comments on commit ef634c4

Please sign in to comment.