Module limits
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.