From d9f910c29e7f4c6042596c4fefb0e5862bc0cdae Mon Sep 17 00:00:00 2001 From: Vishal Dalwadi Date: Tue, 10 Jun 2025 11:06:39 +0530 Subject: [PATCH] feat(go): close the db; --- main.go | 1 + 1 file changed, 1 insertion(+) 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()