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-27 20:11:24 +08:00
1 parent 7cca69a136
commit 3ee6f085db
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 小时兜底
)