mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-05 20:54:18 +08:00
feat(go): close the db;
This commit is contained in:
parent
1c42ad3b39
commit
d9f910c29e
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
@ -62,6 +62,7 @@ func main() {
|
|||
if servercfg.DeployedByOperator() && !servercfg.IsPro {
|
||||
logic.SetFreeTierLimits()
|
||||
}
|
||||
defer db.CloseDB()
|
||||
defer database.CloseDB()
|
||||
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGTERM, os.Interrupt)
|
||||
defer stop()
|
||||
|
|
Loading…
Add table
Reference in a new issue