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