Skip to content

Commit f4a1ccf

Browse files
authored
Merge pull request #47 from Snnappie/fix/keylocation-contains
Fix infinite loop in KeyLocation::contains (round 2)
2 parents 8729350 + 488d151 commit f4a1ccf

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/rpc/client.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -526,13 +526,6 @@ impl KeyLocation {
526526
KeyLocation(region)
527527
}
528528

529-
fn contains(&self, key: &Key) -> bool {
530-
let start = self.start_key();
531-
let end = self.end_key();
532-
let key: &[u8] = key.as_ref();
533-
start <= key && (end < key || end.is_empty())
534-
}
535-
536529
fn into_inner(self) -> Region {
537530
self.0
538531
}

0 commit comments

Comments
 (0)