pub async fn check_bootstrap_drained(
bootstrap_state: &Arc<RwLock<BootstrapState>>,
queues: &ReplicationQueues,
) -> boolExpand description
Check if bootstrap is drained and update state if so.
Bootstrap is drained when:
- All bootstrap peer requests have completed.
- All bootstrap-discovered keys have left the pipeline (no longer in
PendingVerify,FetchQueue, orInFlightFetch).
Returns true if bootstrap is (now) drained.