[#1856] node: Fix config rereading

Config was reread from the file only once in two SIGHUPs.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
remotes/fyrchik/neofs-adm-fix-commands
Pavel Karpy 2022-10-07 17:48:29 +03:00 committed by fyrchik
parent b2aa9947c2
commit 1360273fec
1 changed files with 2 additions and 5 deletions

View File

@ -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)