From 2caa7b4d75d2ff54af20f3e7a30a8eeec8cbcda9 Mon Sep 17 00:00:00 2001 From: Stojan Dimitrovski Date: Sat, 27 Apr 2024 15:38:31 +0200 Subject: [PATCH] fix: add db conn max idle time setting (#1555) Adds the `GOTRUE_DB_CONN_MAX_IDLE_TIME` setting that allows setting the max idle time for a connection. --- internal/storage/dial.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/storage/dial.go b/internal/storage/dial.go index 90a20ac27..274a06a2c 100644 --- a/internal/storage/dial.go +++ b/internal/storage/dial.go @@ -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 {