Skip to main content

prefetch_rate_limits

Function prefetch_rate_limits 

Source
pub async fn prefetch_rate_limits(
    config: Arc<Config>,
    state: StateStore,
    live_creds: LiveCredentials,
)
Expand description

For any account with no rate-limit data yet, make a cheap request directly to the upstream API so we populate metrics without waiting for a real user request. Runs as a background task after startup.