diff --git a/waku/waku_core/topics/sharding.nim b/waku/waku_core/topics/sharding.nim index 1763187080..c62bacfbf6 100644 --- a/waku/waku_core/topics/sharding.nim +++ b/waku/waku_core/topics/sharding.nim @@ -84,8 +84,7 @@ proc parseSharding*(pubsubTopic: Option[PubsubTopic], contentTopics: ContentTopi if shardsRes.isErr(): return err("Cannot autoshard content topic: " & $shardsRes.error) else: shardsRes.get() - - # check if this is even needed + if not topicMap.hasKey(pubsub): topicMap[pubsub] = @[]