@@ -9,12 +9,12 @@ use tikv_client_common::Error;
99use tikv_client_proto:: metapb;
1010
1111use crate :: {
12- Backoff ,
1312 backoff:: DEFAULT_REGION_BACKOFF ,
14- BoundRange ,
15- ColumnFamily ,
1613 config:: Config ,
17- Key , KvPair , pd:: { PdClient , PdRpcClient } , raw:: lowering:: * , request:: { Collect , CollectSingle , Plan , request_codec:: RequestCodec } , Result , Value ,
14+ pd:: { PdClient , PdRpcClient } ,
15+ raw:: lowering:: * ,
16+ request:: { request_codec:: RequestCodec , Collect , CollectSingle , Plan } ,
17+ Backoff , BoundRange , ColumnFamily , Key , KvPair , Result , Value ,
1818} ;
1919
2020const MAX_RAW_KV_SCAN_LIMIT : u32 = 10240 ;
@@ -215,7 +215,7 @@ impl<C: RequestCodec, PdC: PdClient> Client<C, PdC> {
215215 /// ```
216216 pub async fn batch_get (
217217 & self ,
218- keys : impl IntoIterator < Item = impl Into < Key > > ,
218+ keys : impl IntoIterator < Item = impl Into < Key > > ,
219219 ) -> Result < Vec < KvPair > > {
220220 debug ! ( self . logger, "invoking raw batch_get request" ) ;
221221 let request =
@@ -277,7 +277,7 @@ impl<C: RequestCodec, PdC: PdClient> Client<C, PdC> {
277277 /// ```
278278 pub async fn batch_put (
279279 & self ,
280- pairs : impl IntoIterator < Item = impl Into < KvPair > > ,
280+ pairs : impl IntoIterator < Item = impl Into < KvPair > > ,
281281 ) -> Result < ( ) > {
282282 debug ! ( self . logger, "invoking raw batch_put request" ) ;
283283 let request = new_raw_batch_put_request :: < C > (
@@ -339,7 +339,7 @@ impl<C: RequestCodec, PdC: PdClient> Client<C, PdC> {
339339 /// let result: () = req.await.unwrap();
340340 /// # });
341341 /// ```
342- pub async fn batch_delete ( & self , keys : impl IntoIterator < Item = impl Into < Key > > ) -> Result < ( ) > {
342+ pub async fn batch_delete ( & self , keys : impl IntoIterator < Item = impl Into < Key > > ) -> Result < ( ) > {
343343 debug ! ( self . logger, "invoking raw batch_delete request" ) ;
344344 self . assert_non_atomic ( ) ?;
345345 let request =
@@ -465,7 +465,7 @@ impl<C: RequestCodec, PdC: PdClient> Client<C, PdC> {
465465 /// ```
466466 pub async fn batch_scan (
467467 & self ,
468- ranges : impl IntoIterator < Item = impl Into < BoundRange > > ,
468+ ranges : impl IntoIterator < Item = impl Into < BoundRange > > ,
469469 each_limit : u32 ,
470470 ) -> Result < Vec < KvPair > > {
471471 debug ! ( self . logger, "invoking raw batch_scan request" ) ;
@@ -497,7 +497,7 @@ impl<C: RequestCodec, PdC: PdClient> Client<C, PdC> {
497497 /// ```
498498 pub async fn batch_scan_keys (
499499 & self ,
500- ranges : impl IntoIterator < Item = impl Into < BoundRange > > ,
500+ ranges : impl IntoIterator < Item = impl Into < BoundRange > > ,
501501 each_limit : u32 ,
502502 ) -> Result < Vec < Key > > {
503503 debug ! ( self . logger, "invoking raw batch_scan_keys request" ) ;
@@ -547,7 +547,7 @@ impl<C: RequestCodec, PdC: PdClient> Client<C, PdC> {
547547 & self ,
548548 copr_name : impl Into < String > ,
549549 copr_version_req : impl Into < String > ,
550- ranges : impl IntoIterator < Item = impl Into < BoundRange > > ,
550+ ranges : impl IntoIterator < Item = impl Into < BoundRange > > ,
551551 request_builder : impl Fn ( metapb:: Region , Vec < Range < Key > > ) -> Vec < u8 > + Send + Sync + ' static ,
552552 ) -> Result < Vec < ( Vec < u8 > , Vec < Range < Key > > ) > > {
553553 let copr_version_req = copr_version_req. into ( ) ;
@@ -593,7 +593,7 @@ impl<C: RequestCodec, PdC: PdClient> Client<C, PdC> {
593593
594594 async fn batch_scan_inner (
595595 & self ,
596- ranges : impl IntoIterator < Item = impl Into < BoundRange > > ,
596+ ranges : impl IntoIterator < Item = impl Into < BoundRange > > ,
597597 each_limit : u32 ,
598598 key_only : bool ,
599599 ) -> Result < Vec < KvPair > > {
0 commit comments