rate_limit
Rate limit an account, i.e. verify that the account is only sending up to as many operations as are allowed in its rl_state. By default, the rl_state corresponds to the configuration found in the chromia.yml
file.
Can only be called from an operation.
Throws "RATE LIMITED"
if the account has exceeded the rate limit.
Throws "MISSING RATE LIMITER STATE"
if the account does not have an rl_state
. This should generally never happen for user accounts, unless the rl_state
entity has manually been deleted.
Parameters
account
the account to rate limit