Merge pull request #1991 from flant/close-storage

fix: close storage on shutdown
This commit is contained in:
Márk Sági-Kazár
2021-02-13 07:53:58 +01:00
committed by GitHub

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 {