refactor: extract internal500 penalty logic to dedicated file

Move constants, detection, and penalty functions from
antigravity_gateway_service.go to antigravity_internal500_penalty.go.
Fix gofmt alignment and replace hardcoded duration strings with
constant references.
This commit is contained in:
erio
2026-03-24 20:33:11 +08:00
parent 7cca69a136
commit 3ee6f085db
3 changed files with 102 additions and 71 deletions

View File

@@ -9,7 +9,7 @@ import (
)
const (
internal500CounterPrefix = "internal500_count:account:"
internal500CounterPrefix = "internal500_count:account:"
internal500CounterTTLSeconds = 86400 // 24 小时兜底
)