doc: clarify max shard value on CLI args

This commit is contained in:
fryorcraken 2024-06-28 12:10:58 +10:00
parent 19d79384bb
commit 6a62823273
2 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@ type WakuNodeConf* = object
.}: seq[string]
shards* {.
desc: "Shards index to subscribe to [0..MAX_SHARDS-1]. Argument may be repeated.",
desc: "Shards index to subscribe to [0.." & $MaxShardIndex & "]. Argument may be repeated.",
defaultValue: @[],
name: "shard"
.}: seq[uint16]

View File

@ -15,7 +15,7 @@ import ../common/enr, ../waku_core
logScope:
topics = "waku enr sharding"
const MaxShardIndex: uint16 = 1023
const MaxShardIndex*: uint16 = 1023
const
ShardingIndicesListEnrField* = "rs"