Skip to main content

MAX_CONCURRENCY

Constant MAX_CONCURRENCY 

Source
pub const MAX_CONCURRENCY: usize = _ /* 5usize */;
Expand description

Upper bound on MessagesApi::search_summaries’s concurrency parameter, regardless of what the caller (CLI --concurrency or the MCP concurrency param) requests.

Bounds fan-out to one second’s read budget (100 units / 20 units per get). This limits in-flight work, not sustained request rate: fast calls can still consume quota faster than the pacing budget.