File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ impl RpcClient {
265
265
266
266
stream_fn ( tasks, move |mut tasks| {
267
267
if tasks. is_empty ( ) {
268
- return Either :: Right ( ready ( Ok ( None ) ) ) ;
268
+ Either :: Right ( ready ( Ok ( None ) ) )
269
269
} else {
270
270
Either :: Left (
271
271
self . clone ( )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ async fn test_existence<'a>(
49
49
let test_key_end = generate_key ( NUM_TEST_KEYS as i32 - 1 ) ;
50
50
51
51
for pair in existing_pairs. iter ( ) . map ( Clone :: clone) {
52
- let ( key, value) = pair. into_inner ( ) ;
52
+ let ( key, value) = pair. into ( ) ;
53
53
assert_eq ! (
54
54
client
55
55
. get( key)
@@ -102,8 +102,8 @@ async fn test_existence<'a>(
102
102
103
103
assert_eq ! (
104
104
client
105
+ . with_key_only( true )
105
106
. scan( test_key_start. clone( ) ..test_key_end. clone( ) , NUM_TEST_KEYS )
106
- . key_only( )
107
107
. await
108
108
. expect( "Could not scan" ) ,
109
109
existing_key_only_pairs,
@@ -155,7 +155,7 @@ async fn basic_raw_test() {
155
155
test_existence (
156
156
& client,
157
157
& empty_pairs,
158
- pairs. into_iter ( ) . map ( |x| x. into_inner ( ) . 0 ) . collect ( ) ,
158
+ pairs. into_iter ( ) . map ( |x| x. into_key ( ) ) . collect ( ) ,
159
159
)
160
160
. await ;
161
161
}
Original file line number Diff line number Diff line change 1
1
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
2
2
3
3
#![ feature( async_await) ]
4
+ #![ type_length_limit = "4500458" ]
4
5
5
6
#[ cfg( feature = "integration-tests" ) ]
6
7
mod integration_tests;
You can’t perform that action at this time.
0 commit comments