Update sql_store.go

This commit is contained in:
İsmail
2024-11-08 23:53:46 +03:00
parent a76316b46a
commit 8968837e8f

View File

@@ -89,10 +89,6 @@ func NewSqlStore(ctx context.Context, db *gorm.DB, storeEngine StoreEngine, metr
log.WithContext(ctx).Infof("Set max open db connections to %d", conns)
if storeEngine == MysqlStoreEngine {
sql.SetConnMaxLifetime(120)
}
if err := migrate(ctx, db); err != nil {
return nil, fmt.Errorf("migrate: %w", err)
}