From d36084c26a1c30fef5fab6085523c31088582965 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 12 May 2021 12:29:19 +0300 Subject: [PATCH] [#493] node: Replace relay config value to node section Set default value to `false`. Signed-off-by: Leonard Lyubich --- cmd/neofs-node/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/neofs-node/config.go b/cmd/neofs-node/config.go index 238f2f8b2a..8c10ecc41e 100644 --- a/cmd/neofs-node/config.go +++ b/cmd/neofs-node/config.go @@ -64,6 +64,7 @@ const ( cfgNodeKey = "node.key" cfgBootstrapAddress = "node.address" cfgNodeAttributePrefix = "node.attribute" + cfgNodeRelay = "node.relay" // config keys for cfgGRPC cfgListenAddress = "grpc.endpoint" @@ -96,8 +97,6 @@ const ( cfgReplicatorPutTimeout = "replicator.put_timeout" - cfgReBootstrapRelay = "bootstrap.relay_only" - cfgObjectPutPoolSize = "pool.object.put.size" cfgObjectGetPoolSize = "pool.object.get.size" cfgObjectHeadPoolSize = "pool.object.head.size" @@ -354,7 +353,7 @@ func initCfg(path string) *cfg { reputationWorkerPool, err := ants.NewPool(notificationHandlerPoolSize) fatalOnErr(err) - relayOnly := viperCfg.GetBool(cfgReBootstrapRelay) + relayOnly := viperCfg.GetBool(cfgNodeRelay) c := &cfg{ ctx: context.Background(), @@ -431,6 +430,7 @@ func initViper(path string) *viper.Viper { func defaultConfiguration(v *viper.Viper) { v.SetDefault(cfgNodeKey, "") // node key v.SetDefault(cfgBootstrapAddress, "") // announced address of the node + v.SetDefault(cfgNodeRelay, false) v.SetDefault(cfgMorphRPCAddress, []string{}) v.SetDefault(cfgMorphNotifyRPCAddress, []string{})