From 13eae9c5918c3eb41fbd9b8fe842da82b62ac395 Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Mon, 10 Jun 2024 19:33:08 +0200 Subject: [PATCH] ffiixx --- waku/factory/internal_config.nim | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/waku/factory/internal_config.nim b/waku/factory/internal_config.nim index 32896ffd0..7f7508df6 100644 --- a/waku/factory/internal_config.nim +++ b/waku/factory/internal_config.nim @@ -32,16 +32,7 @@ proc enrConfiguration*( let shards: seq[uint16] = # no shards configured if conf.shards.len == 0: - var shardsLocal = newSeq[uint16]() - let shardsRes = topicsToRelayShards(conf.pubsubTopics) - if shardsRes.isOk() and shardsRes.get().isSome(): - shardsLocal = shardsRes.get().get().shardIds - elif 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 - shardsLocal + toSeq(0 ..< conf.pubsubTopics.len).mapIt(uint16(it)) # some shards configured else: