mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-02-22 16:41:28 +08:00
Set conns value to 128
This commit is contained in:
parent
568697bc1f
commit
4cc2d3431c
5
db/db.go
5
db/db.go
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user