mirror of https://github.com/tikv/client-rust.git
impl KvConnectStore for TikvConnect
Signed-off-by: ekexium <ekexium@gmail.com>
This commit is contained in:
parent
db4ea3c718
commit
85fd78948e
|
@ -1,7 +1,7 @@
|
||||||
use crate::{Region, Result};
|
use crate::{Region, Result};
|
||||||
use derive_new::new;
|
use derive_new::new;
|
||||||
use std::any::Any;
|
use std::any::Any;
|
||||||
use tikv_client_store::{KvClient, KvConnect, Request};
|
use tikv_client_store::{KvClient, KvConnect, Request, TikvConnect};
|
||||||
|
|
||||||
#[derive(new)]
|
#[derive(new)]
|
||||||
pub struct Store {
|
pub struct Store {
|
||||||
|
@ -27,3 +27,5 @@ pub trait KvConnectStore: KvConnect {
|
||||||
Ok(Store::new(region, Box::new(client)))
|
Ok(Store::new(region, Box::new(client)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl KvConnectStore for TikvConnect {}
|
||||||
|
|
Loading…
Reference in New Issue