Set MaxOpenConnections/MaxIdleConnections to previous values

This commit is contained in:
Neil Alexander 2020-08-10 13:35:57 +01:00
parent bf32618c7b
commit c880314b19
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -148,8 +148,8 @@ type DatabaseOptions struct {
} }
func (c *DatabaseOptions) Defaults() { func (c *DatabaseOptions) Defaults() {
c.MaxOpenConnections = 0 c.MaxOpenConnections = 100
c.MaxIdleConnections = 0 c.MaxIdleConnections = 2
c.ConnMaxLifetimeSeconds = -1 c.ConnMaxLifetimeSeconds = -1
} }