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 a1118b4 commit 50f9cf6Copy full SHA for 50f9cf6
api/pkg/di/container.go
@@ -265,7 +265,7 @@ func (container *Container) DedicatedDB() (db *gorm.DB) {
265
}
266
267
sqlDB.SetMaxOpenConns(3)
268
- sqlDB.SetConnMaxLifetime(time.Hour)
+ sqlDB.SetConnMaxLifetime(time.Minute)
269
270
if err = db.Use(tracing.NewPlugin()); err != nil {
271
container.logger.Fatal(stacktrace.Propagate(err, "cannot use GORM tracing plugin"))
0 commit comments