mcl_core_guard_rate (mcl_core v1.0.0)

View Source

Stage 2: the fixed-window request-rate limiter.

The window and both maxima come from the procedure''s effective limits; the counters live in mcl_core_guard''s ETS table, keyed by (procedure, caller), so one capability''s bucket is its own. The caller is the platform-injected caller key for map payloads and the shared `$global'' bucket otherwise -- the same honest fallback mcl-echo documents. A denial is counted inside mcl_core_guard:allow/3.

Summary

Functions

check(Payload, _)