Skip to content

Commit ccf6a92

Browse files
committed
fix: 修复 PR Wei-Shaw#723 引入的 CI lint 和 test 编译错误
- wire_gen_test.go: 补充 NewTokenRefreshService 缺失的 tempUnschedCache 参数 - config.go, token_refresh_service.go: 修复 gofmt 格式问题
1 parent 197c570 commit ccf6a92

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

backend/cmd/server/wire_gen_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func TestProvideCleanup_WithMinimalDependencies_NoPanic(t *testing.T) {
3737
nil,
3838
nil,
3939
cfg,
40+
nil,
4041
)
4142
accountExpirySvc := service.NewAccountExpiryService(nil, time.Second)
4243
subscriptionExpirySvc := service.NewSubscriptionExpiryService(nil, time.Second)

backend/internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ type DefaultConfig struct {
872872
}
873873

874874
type RateLimitConfig struct {
875-
OverloadCooldownMinutes int `mapstructure:"overload_cooldown_minutes"` // 529过载冷却时间(分钟)
875+
OverloadCooldownMinutes int `mapstructure:"overload_cooldown_minutes"` // 529过载冷却时间(分钟)
876876
OAuth401CooldownMinutes int `mapstructure:"oauth_401_cooldown_minutes"` // OAuth 401临时不可调度冷却(分钟)
877877
}
878878

backend/internal/service/token_refresh_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ type TokenRefreshService struct {
1818
refreshers []TokenRefresher
1919
cfg *config.TokenRefreshConfig
2020
cacheInvalidator TokenCacheInvalidator
21-
schedulerCache SchedulerCache // 用于同步更新调度器缓存,解决 token 刷新后缓存不一致问题
22-
tempUnschedCache TempUnschedCache // 用于清除 Redis 中的临时不可调度缓存
21+
schedulerCache SchedulerCache // 用于同步更新调度器缓存,解决 token 刷新后缓存不一致问题
22+
tempUnschedCache TempUnschedCache // 用于清除 Redis 中的临时不可调度缓存
2323

2424
stopCh chan struct{}
2525
wg sync.WaitGroup

0 commit comments

Comments
 (0)