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