mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-04 15:03:08 +00:00
Update networks_config.nim
When incorrect sharding config is passed, the following message can appear: ```nim ERR 2025-07-18 10:20:44.808+02:00 validateShards failed topics="waku networks conf" tid=17834 file=networks_config.nim:70 error="validateShards invalid shard: 32 when numShardsInCluster: 1" ERR 2025-07-18 10:20:44.808+02:00 Waku configuration failed topics="wakunode main" tid=17834 file=wakunode2.nim:56 error="validateShards invalid shard: 32 when numShardsInCluster: 1 ``` This aims to reflect the exact paramater that needs to be properly configured
This commit is contained in:
parent
61171ed551
commit
25b0faecb8
@ -65,7 +65,7 @@ proc validateShards*(
|
||||
for shard in shards:
|
||||
if shard >= numShardsInCluster:
|
||||
let msg =
|
||||
"validateShards invalid shard: " & $shard & " when numShardsInCluster: " &
|
||||
"validateShards invalid shard: " & $shard & " when num-shards-in-network: " &
|
||||
$numShardsInCluster
|
||||
error "validateShards failed", error = msg
|
||||
return err(msg)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user