fix: close storage on shutdown
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
parent
a8c7ed9f67
commit
87ebbaf834
@ -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