forked from mystiq/dex
Merge pull request #1991 from flant/close-storage
fix: close storage on shutdown
This commit is contained in:
commit
ce8b05b0be
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue