Skip to content

Commit 1db010b

Browse files
authored
fix: allow 0 idle database connection (#8522)
* fix: allow 0 idle database connection * fix: use default idle conn value if none provided
1 parent e52ce13 commit 1db010b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/core/runner/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func NewGormDbEx(configReader config.ConfigReader, logger log.Logger, sessionCon
6060
}
6161

6262
idleConns := configReader.GetInt("DB_IDLE_CONNS")
63-
if idleConns <= 0 {
63+
if idleConns == 0 {
6464
idleConns = 10
6565
}
6666
dbMaxOpenConns := configReader.GetInt("DB_MAX_CONNS")

0 commit comments

Comments
 (0)