Skip to main content

hrw_select_skip

Function hrw_select_skip 

Source
pub fn hrw_select_skip(
    session_id: &str,
    candidates: &[InferenceServerInfo],
    skip: usize,
) -> Option<usize>
Expand description

Select the skip-th HRW choice (0 = primary, 1 = first fallback, …).

Used after a dial-fail / stall to pick the next candidate without disturbing the primary ranking. Returns None once skip >= candidates.len().