Run formatter on files

This commit is contained in:
maru committed 2024-05-10 15:49:26 -04:00
1 parent a8502fcd3f
commit 693663103b
3 files changed
+4 -5

No files matched your search

+2 -2
View File
@@ -37,14 +37,14 @@ func Init(username, password, protocol, address, database string) error {
if err != nil {
return fmt.Errorf("failed to open database connection: %s", err)
}
conns := 1024
if protocol != "unix" {
conns = 256
}
handle.SetMaxOpenConns(conns)
handle.SetMaxIdleConns(conns/4)
handle.SetMaxIdleConns(conns / 4)
handle.SetConnMaxIdleTime(time.Second * 10)