Skip to content

Commit d9f910c

Browse files
committed
feat(go): close the db;
1 parent 1c42ad3 commit d9f910c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func main() {
6262
if servercfg.DeployedByOperator() && !servercfg.IsPro {
6363
logic.SetFreeTierLimits()
6464
}
65+
defer db.CloseDB()
6566
defer database.CloseDB()
6667
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGTERM, os.Interrupt)
6768
defer stop()

0 commit comments

Comments
 (0)