Skip to main content

clear_capacity_rejected

Function clear_capacity_rejected 

Source
pub async fn clear_capacity_rejected(
    bootstrap_state: &Arc<RwLock<BootstrapState>>,
    source: &PeerId,
)
Expand description

Mark source’s outstanding capacity rejections as cleared.

Called whenever source completes an admission cycle with zero capacity rejections: the source successfully re-delivered any hints that previously overflowed, so its contribution to “bootstrap not drained” is retired. No-op if the source had no outstanding rejections.