Skip to content

Commit 2d0d873

Browse files
committed
fix
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
1 parent 2f04a34 commit 2d0d873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/raw/lowering.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub fn new_raw_batch_put_request(
5252
atomic: bool,
5353
) -> kvrpcpb::RawBatchPutRequest {
5454
let pairs = pairs.map(Into::into).collect::<Vec<_>>();
55-
let ttls = ttls.collect::<Vec<_>>();
55+
let ttls = ttls.take(pairs.len()).collect::<Vec<_>>();
5656
assert_eq!(pairs.len(), ttls.len());
5757
requests::new_raw_batch_put_request(pairs, ttls, cf, atomic)
5858
}

0 commit comments

Comments
 (0)