Skip to content

Commit

Permalink
chore(service/tikv): rename Backend to TikvBackend (#3545)
Browse files Browse the repository at this point in the history
* refactor(service/tikv): Add TikvConfig to implement ConfigDeserializer

* refactor(service/tikv): Add TikvConfig to implement ConfigDeserializer

* refactor(service/tikv): Add TikvConfig to implement ConfigDeserializer
  • Loading branch information
caicancai authored Nov 9, 2023
1 parent 60b4d3a commit 540cc68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/services/tikv/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl TikvBuilder {

impl Builder for TikvBuilder {
const SCHEME: Scheme = Scheme::Tikv;
type Accessor = Backend;
type Accessor = TikvBackend;

fn from_map(map: HashMap<String, String>) -> Self {
let config = TikvConfig::deserialize(ConfigDeserializer::new(map))
Expand Down Expand Up @@ -152,7 +152,7 @@ impl Builder for TikvBuilder {
)?;
}

Ok(Backend::new(Adapter {
Ok(TikvBackend::new(Adapter {
client: OnceCell::new(),
endpoints,
insecure: self.config.insecure,
Expand All @@ -164,7 +164,7 @@ impl Builder for TikvBuilder {
}

/// Backend for TiKV service
pub type Backend = kv::Backend<Adapter>;
pub type TikvBackend = kv::Backend<Adapter>;

#[derive(Clone)]
pub struct Adapter {
Expand Down

0 comments on commit 540cc68

Please sign in to comment.