This commit is contained in:
Mateusz Gruszczyński committed 2026-11-28 17:36:53 +01:00
1 parent 5b6d4a7903
commit 4d1087e357
160 files changed
+2407 -1933

No files matched your search

-2
View File
@@ -135,8 +135,6 @@ func (e *enroller) redeem(cfg config, presented string, now time.Time) bool {
return true
}
// The limiter is deliberately global: it has constant memory usage even if
// callers rotate source IPs. Enrollment is a rare administrative operation.
type enrollLimiter struct {
mu sync.Mutex
tokens float64