From 1360273fec429448ad7c52a1444ab74b9e92627a Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 7 Oct 2022 17:48:29 +0300 Subject: [PATCH] [#1856] node: Fix config rereading Config was reread from the file only once in two SIGHUPs. Signed-off-by: Pavel Karpy --- cmd/neofs-node/config.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd/neofs-node/config.go b/cmd/neofs-node/config.go index e2effd6a..e3c1148b 100644 --- a/cmd/neofs-node/config.go +++ b/cmd/neofs-node/config.go @@ -164,13 +164,10 @@ func (a *applicationConfiguration) readConfig(c *config.Config) error { // clear if it is rereading *a = applicationConfiguration{} - } else { - // update the status. - // initial configuration validation is expected to be - // performed on the higher level - a._read = true } + a._read = true + a.EngineCfg.errorThreshold = engineconfig.ShardErrorThreshold(c) a.EngineCfg.shardPoolSize = engineconfig.ShardPoolSize(c)