Skip to content

Commit

Permalink
Merge branch 'pagefaultgames:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
StrayanDropbear authored May 23, 2024
2 parents e3f064c + 4cc2d34 commit 3ca8a72
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ func Init(username, password, protocol, address, database string) error {
return fmt.Errorf("failed to open database connection: %s", err)
}

conns := 1024
if protocol != "unix" {
conns = 256
}
conns := 128

handle.SetMaxOpenConns(conns)
handle.SetMaxIdleConns(conns / 4)
Expand Down

0 comments on commit 3ca8a72

Please sign in to comment.