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 committed 2026-03-24 20:33:11 +08:00
1 parent a80844558c
commit 4b64df2071
3 files changed
+102 -71

No files matched your search

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