common_meta::rpc::routerFunction convert_to_region_leader_map
source pub fn convert_to_region_leader_map(
region_routes: &[RegionRoute],
) -> HashMap<RegionNumber, &Peer>
Expand description
Returns the HashMap<[RegionNumber], &Peer>;
If the region doesn’t have a leader peer, the Region will be omitted.