Skip to main content

SOURCE_RATE_OVERRIDES

Constant SOURCE_RATE_OVERRIDES 

Source
pub const SOURCE_RATE_OVERRIDES: &[(&str, SourceRate)];
Expand description

Sources whose published terms are stricter than the global cap.

#493. The global cap is 5 requests/second and 5 concurrent, against arXiv’s published “make no more than one request every three seconds, and limit requests to a single connection at a time” – 15x the rate and 5x the concurrency. Three places in the tree asserted the global cap “comfortably respects” it.

A table rather than a config knob, and consulted through RateLimits::backoff_ms_for rather than read directly, so an entry can only ever tighten.

Keys are crate::source::Source::name values.