We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06db088 commit 2ade641Copy full SHA for 2ade641
database/bun.go
@@ -81,7 +81,7 @@ func (db *Bun) Connect(ctx context.Context, cfg config.Database) error {
81
}
82
83
if cfg.MaxLifetimeConnections > 0 {
84
- maxLifetime = time.Duration(maxLifetime) * time.Second
+ maxLifetime = time.Duration(cfg.MaxLifetimeConnections) * time.Second
85
86
87
db.sqldb.SetMaxOpenConns(maxOpenConns)
0 commit comments