Function tikv::server::resolve::new_resolver [−][src]
pub fn new_resolver<T, RR: 'static, E>(
pd_client: Arc<T>,
worker: &Worker,
router: RR
) -> (PdStoreAddrResolver, Arc<Mutex<GlobalReplicationState>>) where
T: PdClient + 'static,
RR: RaftStoreRouter<E>,
E: KvEngine,
Creates a new PdStoreAddrResolver
.