Skip to content

Commit a90181d

Browse files
committed
refactor(meta): rename common-meta-grpc to common-meta-client
1 parent e849dde commit a90181d

31 files changed

+56
-56
lines changed

Cargo.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/binaries/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ common-grpc = { path = "../common/grpc" }
3333
common-macros = { path = "../common/macros" }
3434
common-meta-api = { path = "../meta/api" }
3535
common-meta-app = { path = "../meta/app" }
36+
common-meta-client = { path = "../meta/client" }
3637
common-meta-embedded = { path = "../meta/embedded" }
37-
common-meta-grpc = { path = "../meta/grpc" }
3838
common-meta-raft-store = { path = "../meta/raft-store" }
3939
common-meta-sled-store = { path = "../meta/sled-store" }
4040
common-meta-store = { path = "../meta/store" }

src/binaries/metabench/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ use common_meta_app::schema::DatabaseNameIdent;
2727
use common_meta_app::schema::GetTableReq;
2828
use common_meta_app::schema::TableNameIdent;
2929
use common_meta_app::schema::UpsertTableOptionReq;
30-
use common_meta_grpc::ClientHandle;
31-
use common_meta_grpc::MetaGrpcClient;
30+
use common_meta_client::ClientHandle;
31+
use common_meta_client::MetaGrpcClient;
3232
use common_meta_types::MatchSeq;
3333
use common_meta_types::Operation;
3434
use common_meta_types::UpsertKVReq;

src/binaries/metactl/grpc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use std::fs::File;
1616
use std::io::Write;
1717

18-
use common_meta_grpc::MetaGrpcClient;
18+
use common_meta_client::MetaGrpcClient;
1919
use common_meta_types::protobuf::Empty;
2020
use tokio_stream::StreamExt;
2121

src/binaries/metactl/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mod snapshot;
2020
use clap::Parser;
2121
use common_base::base::tokio;
2222
use common_meta_api::KVApi;
23-
use common_meta_grpc::MetaGrpcClient;
23+
use common_meta_client::MetaGrpcClient;
2424
use common_meta_raft_store::config::get_default_raft_advertise_host;
2525
use common_tracing::init_logging;
2626
use common_tracing::Config as LogConfig;

src/binaries/query/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use std::sync::Arc;
1818

1919
use common_base::base::RuntimeTracker;
2020
use common_macros::databend_main;
21+
use common_meta_client::MIN_METASRV_SEMVER;
2122
use common_meta_embedded::MetaEmbedded;
22-
use common_meta_grpc::MIN_METASRV_SEMVER;
2323
use common_metrics::init_default_metrics_recorder;
2424
use common_tracing::set_panic_hook;
2525
use databend_query::api::HttpService;

src/meta/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Databend Meta is a transactional metadata service.
55
- [`api`](./api/), the user level api interface exposed based on the KVApi implementation.
66
- [`app`](./app/), defines meta data types used by meta-client application.
77
- [`embedded`](./embedded/), a meta store backed with a local sled::Tree.
8-
- [`grpc`](./grpc/), the client library based on grpc and is used to communicate with meta service.
8+
- [`grpc`](client/), the client library based on grpc and is used to communicate with meta service.
99
- [`protos`](./protos/) defines the protobuf messages a meta client talks to a meta server.
1010
- [`proto-conv`](./proto-conv/) defines how to convert metadata types in rust from and to protobuf messages.
1111
- [`raft-store`](./raft-store/), the storage layer implementation of openraft, including the state machine.

src/meta/grpc/Cargo.toml renamed to src/meta/client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "common-meta-grpc"
2+
name = "common-meta-client"
33
version = "0.1.0"
44
description = "common meta grpc"
55
authors = ["Databend Authors <opensource@datafuselabs.com>"]
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)