[#1770] node: Do not init local storage in reading config routine

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-09-26 16:26:41 +03:00 committed by fyrchik
parent 2d7166f8d0
commit 4aa4694152
2 changed files with 2 additions and 2 deletions

View file

@ -356,8 +356,6 @@ func initCfg(appCfg *config.Config) *cfg {
c.onShutdown(c.clientCache.CloseAll) // clean up connections
c.onShutdown(func() { _ = c.persistate.Close() })
initLocalStorage(c)
return c
}

View file

@ -79,6 +79,8 @@ func initAndLog(c *cfg, name string, initializer func(*cfg)) {
}
func initApp(c *cfg) {
initLocalStorage(c)
c.ctx, c.ctxCancel = signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP)
initAndLog(c, "storage engine", func(c *cfg) {