Skip to main content

DIAGNOSTICS_CHANNEL_CAPACITY

Constant DIAGNOSTICS_CHANNEL_CAPACITY 

Source
pub const DIAGNOSTICS_CHANNEL_CAPACITY: usize = 256;
Expand description

Capacity of the diagnostics broadcast channel. 256 events per server fits a fast indexer’s burst rate (rust-analyzer at startup may publish ~once per crate file). Lagged receivers drop oldest first; the editor reconciles by reading the URI’s latest event and ignoring earlier ones for that URI.