Merge pull request #1991 from flant/close-storage
fix: close storage on shutdown
This commit is contained in:
commit
ce8b05b0be
@ -193,6 +193,8 @@ func runServe(options serveOptions) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to initialize storage: %v", err)
|
return fmt.Errorf("failed to initialize storage: %v", err)
|
||||||
}
|
}
|
||||||
|
defer s.Close()
|
||||||
|
|
||||||
logger.Infof("config storage: %s", c.Storage.Type)
|
logger.Infof("config storage: %s", c.Storage.Type)
|
||||||
|
|
||||||
if len(c.StaticClients) > 0 {
|
if len(c.StaticClients) > 0 {
|
||||||
|
Reference in New Issue
Block a user