pub fn choose_items<W>(
opts: &SelectorOptions,
weighted_choose: &mut W,
) -> Result<Vec<Peer>>where
W: WeightedChoose<Peer>,Expand description
According to the opts, choose peers from the weight_array through weighted_choose.
pub fn choose_items<W>(
opts: &SelectorOptions,
weighted_choose: &mut W,
) -> Result<Vec<Peer>>where
W: WeightedChoose<Peer>,According to the opts, choose peers from the weight_array through weighted_choose.