pub fn find_region_leader_ref(
region_routes: &[RegionRoute],
region_number: RegionNumber,
) -> Option<&Peer>Expand description
Borrows the leader of the first route matching the region number.
Returns None if no route matches or the first matching route has no leader.