Skip to content

Commit

Permalink
Merge 1dc4196 into 94947a8
Browse files Browse the repository at this point in the history
  • Loading branch information
darshankabariya authored Jun 21, 2024
2 parents 94947a8 + 1dc4196 commit 350796b
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 350796b

Please sign in to comment.