Skip to content

Commit 8745592

Browse files
committed
fix: try setting maxIdleTime parameter
1 parent cebb7e3 commit 8745592

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/infra/query/sql.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ func (ds *DataSource) Open() error {
7474
ds.dbx = sqlx.NewDb(db, u.UnaliasedDriver)
7575

7676
ds.dbx.SetConnMaxLifetime(ds.maxLifeTime)
77+
ds.dbx.SetConnMaxIdleTime(ds.maxLifeTime)
7778

7879
err = ds.dbx.Ping()
7980
if err != nil {

0 commit comments

Comments
 (0)