feat(go): close the db;

This commit is contained in:
Vishal Dalwadi 2025-06-10 11:06:39 +05:30
parent 1c42ad3b39
commit d9f910c29e

View file

@ -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()