Skip to content

Commit

Permalink
chore: update content-topic parsing for filter (#2835)
Browse files Browse the repository at this point in the history
* chore: update content parsing for filter

* chore: update according to suggestion

* chore: update according to suggestion
  • Loading branch information
darshankabariya authored Jun 21, 2024
1 parent 94947a8 commit 733edae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions waku/factory/node_factory.nim
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ proc setupProtocols(

peerExchangeHandler = some(handlePeerExchange)

let shards =
conf.contentTopics.mapIt(node.wakuSharding.getShard(it).expect("Valid Shard"))
debug "Shards created from content topics",
contentTopics = conf.contentTopics, shards = shards

if conf.relay:
let shards =
conf.contentTopics.mapIt(node.wakuSharding.getShard(it).expect("Valid Shard"))
let pubsubTopics = conf.pubsubTopics & shards

debug "Shards created from content topics",
contentTopics = conf.contentTopics, shards = shards

let parsedMaxMsgSize = parseMsgSize(conf.maxMessageSize).valueOr:
return err("failed to parse 'max-num-bytes-msg-size' param: " & $error)

Expand Down

0 comments on commit 733edae

Please sign in to comment.