Skip to content

Commit

Permalink
log warning when automagically setting numShardsInNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed Aug 29, 2024
1 parent 0e869d5 commit e65c4a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions waku/factory/node_factory.nim
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ proc setupProtocols(
# If conf.numShardsInNetwork is not set, use the number of shards configured as numShardsInNetwork
let numShardsInNetwork = getNumShardsInNetwork(conf)

if conf.numShardsInNetwork == 0:
warn "Number of shards in network not configured, setting it to",
numShardsInNetwork = $numShardsInNetwork

node.mountSharding(conf.clusterId, numShardsInNetwork).isOkOr:
return err("failed to mount waku sharding: " & error)

Expand Down

0 comments on commit e65c4a5

Please sign in to comment.