Skip to content

Commit 2c831ba

Browse files
authored
add with_backoff to RawClient (#404)
* add with_backoff to RawClient Signed-off-by: Andy Lok <andylokandy@hotmail.com> * address comment Signed-off-by: Andy Lok <andylokandy@hotmail.com> --------- Signed-off-by: Andy Lok <andylokandy@hotmail.com>
1 parent e49bc09 commit 2c831ba

File tree

10 files changed

+64
-179
lines changed

10 files changed

+64
-179
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ MULTI_REGION ?= 1
77

88
ALL_FEATURES := integration-tests
99

10-
INTEGRATION_TEST_ARGS := --no-default-features --features "integration-tests"
10+
INTEGRATION_TEST_ARGS := --features "integration-tests"
1111

1212
default: check
1313

1414
check:
15-
cargo check --all --all-targets --no-default-features --features "${ALL_FEATURES}"
15+
cargo check --all --all-targets --features "${ALL_FEATURES}"
1616
cargo fmt -- --check
17-
cargo clippy --all-targets --no-default-features --features "${ALL_FEATURES}" -- -D clippy::all
17+
cargo clippy --all-targets --features "${ALL_FEATURES}" -- -D clippy::all
1818

1919
unit-test:
2020
cargo test --all --no-default-features

src/common/errors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ impl From<crate::proto::kvrpcpb::KeyError> for Error {
120120
/// A result holding an [`Error`](enum@Error).
121121
pub type Result<T> = result::Result<T, Error>;
122122

123+
#[doc(hidden)]
123124
#[macro_export]
124125
macro_rules! internal_err {
125126
($e:expr) => ({

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@
9595
#![allow(clippy::field_reassign_with_default)]
9696
#![allow(clippy::arc_with_non_send_sync)]
9797

98+
pub mod backoff;
99+
#[doc(hidden)]
100+
pub mod raw;
98101
pub mod request;
99102
#[doc(hidden)]
100103
pub mod transaction;
101104

102-
mod backoff;
103105
mod common;
104106
mod compat;
105107
mod config;
106108
mod kv;
107109
mod pd;
108110
mod proto;
109-
#[doc(hidden)]
110-
pub mod raw;
111111
mod region;
112112
mod region_cache;
113113
mod stats;

0 commit comments

Comments
 (0)