Skip to content

Commit

Permalink
refactor: refactor the error-handling logic in curp module and its cl…
Browse files Browse the repository at this point in the history
…ient

Refs: #463
Signed-off-by: Phoeniix Zhao <[email protected]>
  • Loading branch information
Phoenix500526 committed Oct 11, 2023
1 parent 3237315 commit 1a849d6
Show file tree
Hide file tree
Showing 52 changed files with 596 additions and 630 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions benchmark/src/bench_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ use std::fmt::Debug;
use anyhow::Result;
use etcd_client::{Client as EtcdClient, PutOptions};
use thiserror::Error;
use xline::server::Command;
use xline_client::{
error::ClientError,
error::XlineClientError as ClientError,
types::kv::{PutRequest, PutResponse},
Client, ClientOptions,
};
Expand All @@ -18,7 +19,7 @@ pub(crate) enum BenchClientError {
EtcdError(#[from] etcd_client::Error),
/// Error from `xline_client`
#[error("xline_client error: {0}")]
XlineError(#[from] ClientError),
XlineError(#[from] ClientError<Command>),
}

/// Benchmark client
Expand Down
Loading

0 comments on commit 1a849d6

Please sign in to comment.