mirror of https://github.com/waku-org/nwaku.git
fix: don't mount metadata for clusterID 0
This commit is contained in:
parent
e61e4ff90a
commit
581139ec79
|
@ -113,12 +113,11 @@ proc setupProtocols(
|
|||
## Setup configured protocols on an existing Waku v2 node.
|
||||
## Optionally include persistent message storage.
|
||||
## No protocols are started yet.
|
||||
|
||||
node.mountMetadata(conf.clusterId).isOkOr:
|
||||
return err("failed to mount waku metadata protocol: " & error)
|
||||
|
||||
node.mountSharding(conf.clusterId, uint32(conf.pubsubTopics.len)).isOkOr:
|
||||
return err("failed to mount waku sharding: " & error)
|
||||
if conf.clusterId != 0:
|
||||
node.mountMetadata(conf.clusterId).isOkOr:
|
||||
return err("failed to mount waku metadata protocol: " & error)
|
||||
node.mountSharding(conf.clusterId, uint32(conf.pubsubTopics.len)).isOkOr:
|
||||
return err("failed to mount waku sharding: " & error)
|
||||
|
||||
# Mount relay on all nodes
|
||||
var peerExchangeHandler = none(RoutingRecordsHandler)
|
||||
|
|
Loading…
Reference in New Issue