mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fix: db MaxOpenConns setting (#7360)
* Fix pg MaxOpenConns setting * fix: crdb open conns --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
parent
a065ddc706
commit
f0ba2b955a
@ -79,7 +79,7 @@ func (c *Config) Connect(useAdmin bool, pusherRatio, spoolerRatio float64, purpo
|
||||
return nil, err
|
||||
}
|
||||
|
||||
client.SetMaxOpenConns(int(connConfig.MaxIdleConns))
|
||||
client.SetMaxOpenConns(int(connConfig.MaxOpenConns))
|
||||
client.SetMaxIdleConns(int(connConfig.MaxIdleConns))
|
||||
client.SetConnMaxLifetime(c.MaxConnLifetime)
|
||||
client.SetConnMaxIdleTime(c.MaxConnIdleTime)
|
||||
|
@ -80,7 +80,7 @@ func (c *Config) Connect(useAdmin bool, pusherRatio, spoolerRatio float64, purpo
|
||||
return nil, err
|
||||
}
|
||||
|
||||
client.SetMaxOpenConns(int(connConfig.MaxIdleConns))
|
||||
client.SetMaxOpenConns(int(connConfig.MaxOpenConns))
|
||||
client.SetMaxIdleConns(int(connConfig.MaxIdleConns))
|
||||
client.SetConnMaxLifetime(c.MaxConnLifetime)
|
||||
client.SetConnMaxIdleTime(c.MaxConnIdleTime)
|
||||
|
Loading…
Reference in New Issue
Block a user