fix: close storage on shutdown

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
m.nabokikh 2021-02-12 20:32:47 +04:00
parent a8c7ed9f67
commit 87ebbaf834

View File

@ -193,6 +193,8 @@ func runServe(options serveOptions) error {
if err != nil {
return fmt.Errorf("failed to initialize storage: %v", err)
}
defer s.Close()
logger.Infof("config storage: %s", c.Storage.Type)
if len(c.StaticClients) > 0 {