Skip to content

Commit

Permalink
add with_backoff to RawClient (#404)
Browse files Browse the repository at this point in the history
* add with_backoff to RawClient

Signed-off-by: Andy Lok <[email protected]>

* address comment

Signed-off-by: Andy Lok <[email protected]>

---------

Signed-off-by: Andy Lok <[email protected]>
  • Loading branch information
andylokandy authored Jul 11, 2023
1 parent e49bc09 commit 2c831ba
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 179 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ MULTI_REGION ?= 1

ALL_FEATURES := integration-tests

INTEGRATION_TEST_ARGS := --no-default-features --features "integration-tests"
INTEGRATION_TEST_ARGS := --features "integration-tests"

default: check

check:
cargo check --all --all-targets --no-default-features --features "${ALL_FEATURES}"
cargo check --all --all-targets --features "${ALL_FEATURES}"
cargo fmt -- --check
cargo clippy --all-targets --no-default-features --features "${ALL_FEATURES}" -- -D clippy::all
cargo clippy --all-targets --features "${ALL_FEATURES}" -- -D clippy::all

unit-test:
cargo test --all --no-default-features
Expand Down
1 change: 1 addition & 0 deletions src/common/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ impl From<crate::proto::kvrpcpb::KeyError> for Error {
/// A result holding an [`Error`](enum@Error).
pub type Result<T> = result::Result<T, Error>;

#[doc(hidden)]
#[macro_export]
macro_rules! internal_err {
($e:expr) => ({
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,19 @@
#![allow(clippy::field_reassign_with_default)]
#![allow(clippy::arc_with_non_send_sync)]

pub mod backoff;
#[doc(hidden)]
pub mod raw;
pub mod request;
#[doc(hidden)]
pub mod transaction;

mod backoff;
mod common;
mod compat;
mod config;
mod kv;
mod pd;
mod proto;
#[doc(hidden)]
pub mod raw;
mod region;
mod region_cache;
mod stats;
Expand Down
Loading

0 comments on commit 2c831ba

Please sign in to comment.