mirror of https://github.com/tikv/client-rust.git
Merge branch 'master' into fix-region-range
This commit is contained in:
commit
fb16ded290
|
@ -189,8 +189,7 @@ impl Into<kvrpcpb::KeyRange> for BoundRange {
|
|||
let (start, end) = self.into_keys();
|
||||
let mut range = kvrpcpb::KeyRange::default();
|
||||
range.set_start_key(start.into());
|
||||
// FIXME handle end = None rather than unwrapping
|
||||
end.map(|k| range.set_end_key(k.into())).unwrap();
|
||||
range.set_end_key(end.unwrap_or_default().into());
|
||||
range
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue