setting default pubsub topic value and modifying log

This commit is contained in:
Gabriel mermelstein 2024-05-23 16:48:35 +02:00
parent fa47648e4f
commit 6a8e498c5f
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D
2 changed files with 2 additions and 1 deletions

View File

@ -298,6 +298,7 @@ type WakuNodeConf* = object
pubsubTopics* {.
desc: "Default pubsub topic to subscribe to. Argument may be repeated.",
defaultValue: @["/waku/2/rs/0/0"],
name: "pubsub-topic"
.}: seq[string]

View File

@ -39,7 +39,7 @@ proc enrConfiguration*(
if shardsOpt.isSome():
shards = shardsOpt.get().shardIds
else:
info "no pubsub topics specified or pubsubtopic is of type Named sharding "
info "no pubsub topics specified"
# some shards configured
else:
shards = toSeq(conf.shards.mapIt(uint16(it)))