Skip to content

Commit

Permalink
fix: add db conn max idle time setting (#1555)
Browse files Browse the repository at this point in the history
Adds the `GOTRUE_DB_CONN_MAX_IDLE_TIME` setting that allows setting the
max idle time for a connection.
  • Loading branch information
hf committed Apr 27, 2024
1 parent 5bedafc commit 2caa7b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/storage/dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func Dial(config *conf.GlobalConfiguration) (*Connection, error) {
Pool: config.DB.MaxPoolSize,
IdlePool: config.DB.MaxIdlePoolSize,
ConnMaxLifetime: config.DB.ConnMaxLifetime,
ConnMaxIdleTime: config.DB.ConnMaxIdleTime,
Options: options,
})
if err != nil {
Expand Down

0 comments on commit 2caa7b4

Please sign in to comment.