Revert "feat(gateway): 实现负载感知的账号调度优化 (#114)"

This reverts commit 8d252303fc.
This commit is contained in:
Wesley Liddick
2026-01-01 10:43:35 +08:00
committed by GitHub
parent 8d252303fc
commit 30326cf267
29 changed files with 133 additions and 2671 deletions

View File

@@ -73,15 +73,6 @@ func ProvideDeferredService(accountRepo AccountRepository, timingWheel *TimingWh
return svc
}
// ProvideConcurrencyService creates ConcurrencyService and starts slot cleanup worker.
func ProvideConcurrencyService(cache ConcurrencyCache, accountRepo AccountRepository, cfg *config.Config) *ConcurrencyService {
svc := NewConcurrencyService(cache)
if cfg != nil {
svc.StartSlotCleanupWorker(accountRepo, cfg.Gateway.Scheduling.SlotCleanupInterval)
}
return svc
}
// ProviderSet is the Wire provider set for all services
var ProviderSet = wire.NewSet(
// Core services
@@ -116,7 +107,7 @@ var ProviderSet = wire.NewSet(
ProvideEmailQueueService,
NewTurnstileService,
NewSubscriptionService,
ProvideConcurrencyService,
NewConcurrencyService,
NewIdentityService,
NewCRSSyncService,
ProvideUpdateService,