diff --git a/main.go b/main.go index 337c6459..ca2f355e 100644 --- a/main.go +++ b/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()