common_meta::rpc::router

Function find_region_leader

source
pub fn find_region_leader(
    region_routes: &[RegionRoute],
    region_number: RegionNumber,
) -> Option<Peer>