chore: update content-topic parsing for filter (#2835)

* chore: update content parsing for filter

* chore: update according to suggestion

* chore: update according to suggestion
This commit is contained in:
Darshan K 2024-06-21 17:47:44 +05:30 committed by GitHub
parent 94947a8504
commit 733edae435
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -144,13 +144,13 @@ proc setupProtocols(
peerExchangeHandler = some(handlePeerExchange)
if conf.relay:
let shards =
conf.contentTopics.mapIt(node.wakuSharding.getShard(it).expect("Valid Shard"))
let pubsubTopics = conf.pubsubTopics & shards
let shards =
conf.contentTopics.mapIt(node.wakuSharding.getShard(it).expect("Valid Shard"))
debug "Shards created from content topics",
contentTopics = conf.contentTopics, shards = shards
debug "Shards created from content topics",
contentTopics = conf.contentTopics, shards = shards
if conf.relay:
let pubsubTopics = conf.pubsubTopics & shards
let parsedMaxMsgSize = parseMsgSize(conf.maxMessageSize).valueOr:
return err("failed to parse 'max-num-bytes-msg-size' param: " & $error)