Skip to content

Commit 1a6f2c0

Browse files
authored
Merge pull request #7633 from drmingdrmer/9-refact-client-err
refactor(meta-client): refine error usage
2 parents 5e15d1b + 79a8bf1 commit 1a6f2c0

File tree

15 files changed

+229
-124
lines changed

15 files changed

+229
-124
lines changed

Cargo.lock

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

src/binaries/meta/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ async fn run_kvapi_command(conf: &Config, op: &str) {
156156
password: conf.password.clone(),
157157
..Default::default()
158158
};
159-
let client = match MetaStoreProvider::new(rpc_conf).try_get_meta_store().await {
159+
let client = match MetaStoreProvider::new(rpc_conf).create_meta_store().await {
160160
Ok(s) => Arc::new(s),
161161
Err(e) => {
162-
eprintln!("{}", e.message());
162+
eprintln!("{}", e);
163163
return;
164164
}
165165
};

0 commit comments

Comments
 (0)