From 3d2027227b7913c1bb48e0801e62d3fe2e28349c Mon Sep 17 00:00:00 2001 From: erio Date: Tue, 14 Apr 2026 20:22:45 +0800 Subject: [PATCH] fix: update wire_gen.go to use ProvideSchedulerCache with config injection wire_gen.go was calling NewSchedulerCache(redisClient) but wire.go had been updated to register ProvideSchedulerCache(redisClient, config), which reads SnapshotMGetChunkSize and SnapshotWriteChunkSize from config. Without this fix, those config values were silently ignored. --- backend/cmd/server/wire_gen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/cmd/server/wire_gen.go b/backend/cmd/server/wire_gen.go index a0e84f4c..1d39fa1e 100644 --- a/backend/cmd/server/wire_gen.go +++ b/backend/cmd/server/wire_gen.go @@ -99,7 +99,7 @@ func initializeApplication(buildInfo handler.BuildInfo) (*Application, error) { } dashboardAggregationService := service.ProvideDashboardAggregationService(dashboardAggregationRepository, timingWheelService, configConfig) dashboardHandler := admin.NewDashboardHandler(dashboardService, dashboardAggregationService) - schedulerCache := repository.NewSchedulerCache(redisClient) + schedulerCache := repository.ProvideSchedulerCache(redisClient, configConfig) accountRepository := repository.NewAccountRepository(client, db, schedulerCache) proxyExitInfoProber := repository.NewProxyExitInfoProber(configConfig) proxyLatencyCache := repository.NewProxyLatencyCache(redisClient)