Skip to content

Commit

Permalink
fix: handle named sharding in enr (#2647)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyaprem authored Apr 29, 2024
1 parent 6e6cb29 commit 8d1b083
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions waku/factory/internal_config.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d1b083

Please sign in to comment.