Skip to content

Commit 72353e9

Browse files
committed
Bump Kvproto
Signed-off-by: Ana Hobden <[email protected]>
1 parent c74a01a commit 72353e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ log = "0.3.9"
2626

2727
[dependencies.kvproto]
2828
git = "https://github.com/pingcap/kvproto.git"
29+
rev = "f9b9e7d362c7cc2c90202fc7c300b2e466cbfbf2"
2930

3031
[dependencies.prometheus]
3132
version = "0.4.2"

src/rpc/tikv/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ impl From<errorpb::Error> for Error {
5555
e.take_start_key(),
5656
e.take_end_key(),
5757
)
58-
} else if e.has_stale_epoch() {
58+
} else if e.has_epoch_not_match() {
5959
Error::StaleEpoch(Some(format!(
6060
"{}. New epoch: {:?}",
6161
message,
62-
e.get_stale_epoch().get_new_regions()
62+
e.get_epoch_not_match().get_current_regions()
6363
)))
6464
} else if e.has_server_is_busy() {
6565
let mut e = e.take_server_is_busy();

0 commit comments

Comments
 (0)