优化结构

This commit is contained in:
Yvan
2026-08-28 11:51:37 +08:00
parent 5b04998731
commit 33ba777137
25 changed files with 163 additions and 125 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ func (r *rollback) run() {
// newReloadableDB owns only the hot-swappable database handle. Domain-specific
// callbacks are attached by Data when a pool becomes active.
func newReloadableDB(db *gorm.DB, _ ...dataScopeAuditEnqueue) *reloadable[*gorm.DB] {
func newReloadableDB(db *gorm.DB) *reloadable[*gorm.DB] {
return newReloadable(db, closeGormDB)
}