From 9f90238fb6bfe9aa596c41af008a6596c1112b5f Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:25:40 +0300 Subject: [PATCH] SetMaxOpenConns 1 --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 1501b2a..d86b80a 100644 --- a/main.go +++ b/main.go @@ -27,6 +27,7 @@ func main() { log.Fatal(err) } }(db) + db.SetMaxOpenConns(1) // Create requests table if it doesn't exist _, err = db.Exec(`CREATE TABLE IF NOT EXISTS requests (