Skip to content

Commit eb1d2da

Browse files
committed
fix wrong spelling variable
Signed-off-by: Andy Lok <[email protected]>
1 parent 8c94e39 commit eb1d2da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/transaction/requests.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -390,15 +390,15 @@ impl Merge<ResponseWithShard<kvrpcpb::PessimisticLockResponse, Vec<kvrpcpb::Muta
390390
.map(|m| m.key)
391391
.zip(values)
392392
.map(KvPair::from);
393-
assert_eq!(kvparis.len(), values_len);
393+
assert_eq!(kvpairs.len(), values_len);
394394
if not_founds.is_empty() {
395395
// Legacy TiKV does not distiguish not existing key and existing key
396396
// that with empty value. We assume that key does not exist if value
397397
// is empty.
398-
Either::Left(kvparis.filter(|kvpair| !kvpair.value().is_empty()))
398+
Either::Left(kvpairs.filter(|kvpair| !kvpair.value().is_empty()))
399399
} else {
400-
assert_eq!(kvparis.len(), not_founds.len());
401-
Either::Right(kvparis.zip(not_founds).filter_map(|(kvpair, not_found)| {
400+
assert_eq!(kvpairs.len(), not_founds.len());
401+
Either::Right(kvpairs.zip(not_founds).filter_map(|(kvpair, not_found)| {
402402
if not_found {
403403
None
404404
} else {

0 commit comments

Comments
 (0)