Skip to main content

Module limits

Module limits 

Source
Expand description

Loads limits.toml (section [bcs]) through BrokerLimits::from_toml_section.

BCS publishes no numbers of its own, so the bundled values are cautious starting points, to be lowered if RateLimited comes too early. One BrokerLimiter per token: give every connector of one BCS account 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 BCS limits, parsed.
limits_from_toml_path
Reads the [bcs] section of a limits file on disk.
limits_from_toml_str
Reads the [bcs] section of a limits file given as text.