mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
ci: update linter
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
@@ -81,7 +81,7 @@ func (m *MySQL) driver() (*entSQL.Driver, error) {
|
||||
}
|
||||
|
||||
if m.MaxIdleConns == 0 {
|
||||
/* Override default behaviour to fix https://github.com/dexidp/dex/issues/1608 */
|
||||
/* Override default behavior to fix https://github.com/dexidp/dex/issues/1608 */
|
||||
drv.DB().SetMaxIdleConns(0)
|
||||
} else {
|
||||
drv.DB().SetMaxIdleConns(m.MaxIdleConns)
|
||||
|
||||
@@ -272,7 +272,7 @@ func (s *MySQL) open(logger *slog.Logger) (*conn, error) {
|
||||
}
|
||||
|
||||
if s.MaxIdleConns == 0 {
|
||||
/*Override default behaviour to fix https://github.com/dexidp/dex/issues/1608*/
|
||||
/*Override default behavior to fix https://github.com/dexidp/dex/issues/1608*/
|
||||
db.SetMaxIdleConns(0)
|
||||
} else {
|
||||
db.SetMaxIdleConns(s.MaxIdleConns)
|
||||
|
||||
Reference in New Issue
Block a user