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