Skip to main content

note_capacity_rejected

Function note_capacity_rejected 

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

Record that source had one or more hints rejected at capacity this cycle.

Tracks each source’s first rejection time, not a counter and not the most recent time: a repeat rejection re-asserts the debt but does not restart the expiry clock (see BootstrapState::capacity_rejected_sources). Bootstrap cannot drain while this source has an entry; cleared by clear_capacity_rejected when the same source’s next admission cycle completes with zero rejections (i.e. the source successfully re-delivered everything that previously overflowed), or expired by expire_capacity_rejected once the debt has stood past the re-delivery TTL.