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
commit ce8b05b0be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {