Skip to main content

Module limits

Module limits 

Source
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.