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 {
265265
266266 stream_fn ( tasks, move |mut tasks| {
267267 if tasks. is_empty ( ) {
268- return Either :: Right ( ready ( Ok ( None ) ) ) ;
268+ Either :: Right ( ready ( Ok ( None ) ) )
269269 } else {
270270 Either :: Left (
271271 self . clone ( )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ async fn test_existence<'a>(
4949 let test_key_end = generate_key ( NUM_TEST_KEYS as i32 - 1 ) ;
5050
5151 for pair in existing_pairs. iter ( ) . map ( Clone :: clone) {
52- let ( key, value) = pair. into_inner ( ) ;
52+ let ( key, value) = pair. into ( ) ;
5353 assert_eq ! (
5454 client
5555 . get( key)
@@ -102,8 +102,8 @@ async fn test_existence<'a>(
102102
103103 assert_eq ! (
104104 client
105+ . with_key_only( true )
105106 . scan( test_key_start. clone( ) ..test_key_end. clone( ) , NUM_TEST_KEYS )
106- . key_only( )
107107 . await
108108 . expect( "Could not scan" ) ,
109109 existing_key_only_pairs,
@@ -155,7 +155,7 @@ async fn basic_raw_test() {
155155 test_existence (
156156 & client,
157157 & empty_pairs,
158- pairs. into_iter ( ) . map ( |x| x. into_inner ( ) . 0 ) . collect ( ) ,
158+ pairs. into_iter ( ) . map ( |x| x. into_key ( ) ) . collect ( ) ,
159159 )
160160 . await ;
161161}
Original file line number Diff line number Diff line change 11// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
22
33#![ feature( async_await) ]
4+ #![ type_length_limit = "4500458" ]
45
56#[ cfg( feature = "integration-tests" ) ]
67mod integration_tests;
You can’t perform that action at this time.
0 commit comments