SetEnforcer wires in the resource-limits enforcer. When nil (the default) every check passes — handlers behave as if every user has unlimited capacity. The cmd/e2a runtime always sets it; tests that don't care about limits omit it and continue to work as before.
(e limits.Enforcer)
| 461 | // unlimited capacity. The cmd/e2a runtime always sets it; tests that |
| 462 | // don't care about limits omit it and continue to work as before. |
| 463 | func (a *API) SetEnforcer(e limits.Enforcer) { a.enforcer = e } |
| 464 | |
| 465 | // SendLimitAllow exposes the per-agent outbound rate limiter so the v1 httpapi |
| 466 | // layer shares the *same* token bucket as the legacy handlers (a caller hitting |
no outgoing calls