SetMaxOpenConns 1

This commit is contained in:
norohind 2024-04-16 15:25:40 +03:00
parent 93dca9b30b
commit 9f90238fb6
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

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