Expand description
Loads limits.toml (section [alor]) through BrokerLimits::from_toml_section.
The broker publishes one number for requests (100 a second per user) and the sizes of a WebSocket connection.
The rest of its protection (the social rating) is not published, so the bundled values are the published ones
and nothing more. One BrokerLimiter per login: give every connector of one ALOR login the same
Arc<BrokerLimiter>.
Constants§
- DEFAULT_
LIMITS_ TOML - The text of the bundled limits file
limits.toml, compiled into the crate.
Functions§
- default_
limits - The bundled ALOR limits, parsed.
- limits_
from_ toml_ path - Reads the
[alor]section of a limits file on disk, to tune the limits without recompiling. - limits_
from_ toml_ str - Reads the
[alor]section of a limits file given as text.