pub fn select_targets<P>(
leader_provider: &P,
backups: &[LeaderTarget],
policy: RoutingPolicy,
) -> Vec<LeaderTarget>where
P: LeaderProvider + ?Sized,Expand description
Selects leader/backup targets in deterministic order.
pub fn select_targets<P>(
leader_provider: &P,
backups: &[LeaderTarget],
policy: RoutingPolicy,
) -> Vec<LeaderTarget>where
P: LeaderProvider + ?Sized,Selects leader/backup targets in deterministic order.