forked from TrueCloudLab/frostfs-node
[#1770] node: Do not init local storage in reading config routine
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
2d7166f8d0
commit
4aa4694152
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue