mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-27 23:27:27 +00:00
fix: handle named sharding in enr (#2647)
This commit is contained in:
parent
6e6cb298a3
commit
8d1b0834db
@ -36,6 +36,8 @@ proc enrConfiguration*(
|
|||||||
let shardsRes = topicsToRelayShards(conf.pubsubTopics)
|
let shardsRes = topicsToRelayShards(conf.pubsubTopics)
|
||||||
if shardsRes.isOk() and shardsRes.get().isSome():
|
if shardsRes.isOk() and shardsRes.get().isSome():
|
||||||
shardsLocal = shardsRes.get().get().shardIds
|
shardsLocal = shardsRes.get().get().shardIds
|
||||||
|
elif not shardsRes.get().isNone():
|
||||||
|
info "no pubsub topics specified or pubsubtopic is of type Named sharding "
|
||||||
else:
|
else:
|
||||||
error "failed to parse pubsub topic, please format according to static shard specification",
|
error "failed to parse pubsub topic, please format according to static shard specification",
|
||||||
error = shardsRes.error
|
error = shardsRes.error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user