Skip to content

Commit

Permalink
chore: revert setting max idle connections for jobsdb (#5151)
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr authored Oct 1, 2024
1 parent 62143dc commit ef57540
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jobsdb/jobsdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ import (
"github.com/rudderlabs/rudder-go-kit/stats/metric"

"github.com/rudderlabs/rudder-go-kit/logger"

"github.com/rudderlabs/rudder-server/jobsdb/internal/cache"
"github.com/rudderlabs/rudder-server/jobsdb/internal/lock"
"github.com/rudderlabs/rudder-server/utils/crash"
. "github.com/rudderlabs/rudder-server/utils/tx" //nolint:staticcheck

"github.com/rudderlabs/rudder-go-kit/config"
"github.com/rudderlabs/rudder-go-kit/stats"

"github.com/rudderlabs/rudder-server/services/rmetrics"
"github.com/rudderlabs/rudder-server/utils/misc"

Expand Down Expand Up @@ -768,7 +770,6 @@ func (jd *Handle) init() {
}
}
jd.dbHandle.SetMaxOpenConns(maxConns)
jd.dbHandle.SetMaxIdleConns(maxConns)

jd.assertError(jd.dbHandle.Ping())

Expand Down

0 comments on commit ef57540

Please sign in to comment.