You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extract the per-link lock-out and a JSON-file record store (second host: heed) #3
Per-link lock-out: two limiters (per client per link; per link from everyone, locking for a window) plus a locked dict. Candidate: caplinks.AttemptGuard(rate_limiter, link_failure_limiter, lock_s, clock) with allow(link, client) -> bool and failed(link). Reviewer notes: prune the dict, and note it is per process even with a shared limiter.
JSON-file record store (MutableMapping: atomic write via mkstemp so 0600, checked keys, tolerant listing): annals' _ShareRecords and heed's _JsonRecords are the same job.
Activity
AttemptGuard and JsonRecords/FileTexts, extracted from annals and heed (