@@ -285,7 +285,7 @@ impl REClientBuilder {
285
285
create_channel ( opts. cas_address . clone ( ) ) ,
286
286
create_channel ( opts. engine_address . clone ( ) ) ,
287
287
)
288
- . await ;
288
+ . await ;
289
289
290
290
let interceptor = InjectHeadersInterceptor :: new ( & opts. http_headers ) ?;
291
291
@@ -307,7 +307,7 @@ impl REClientBuilder {
307
307
& instance_name,
308
308
opts. max_total_batch_size ,
309
309
)
310
- . await ?
310
+ . await ?
311
311
} else {
312
312
RECapabilities {
313
313
exec_enabled : true ,
@@ -334,7 +334,7 @@ impl REClientBuilder {
334
334
cas. context ( "Error creating CAS client" ) ?,
335
335
interceptor. dupe ( ) ,
336
336
)
337
- . max_decoding_message_size ( max_decoding_msg_size) ,
337
+ . max_decoding_message_size ( max_decoding_msg_size) ,
338
338
execution_client : ExecutionClient :: with_interceptor (
339
339
execution. context ( "Error creating Execution client" ) ?,
340
340
interceptor. dupe ( ) ,
@@ -347,7 +347,7 @@ impl REClientBuilder {
347
347
bytestream. context ( "Error creating Bytestream client" ) ?,
348
348
interceptor. dupe ( ) ,
349
349
)
350
- . max_decoding_message_size ( max_decoding_msg_size) ,
350
+ . max_decoding_message_size ( max_decoding_msg_size) ,
351
351
} ;
352
352
353
353
Ok ( REClient :: new (
@@ -672,7 +672,7 @@ impl REClient {
672
672
message : rpc_status. message ,
673
673
group : TCodeReasonGroup :: UNKNOWN ,
674
674
}
675
- . into ( ) ) ;
675
+ . into ( ) ) ;
676
676
}
677
677
OpResult :: Response ( any) => {
678
678
let execute_response_grpc: GExecuteResponse =
@@ -735,9 +735,9 @@ impl REClient {
735
735
let stream = stream. map ( move |mut r| {
736
736
match & mut r {
737
737
Ok ( ExecuteWithProgressResponse {
738
- execute_response : Some ( ref mut response) ,
739
- ..
740
- } ) => {
738
+ execute_response : Some ( ref mut response) ,
739
+ ..
740
+ } ) => {
741
741
response. action_digest = std:: mem:: take ( & mut execute_request. action_digest ) ;
742
742
}
743
743
_ => { }
@@ -786,7 +786,7 @@ impl REClient {
786
786
Ok ( resp. into_inner ( ) )
787
787
} ,
788
788
)
789
- . await
789
+ . await
790
790
}
791
791
792
792
pub async fn upload_blob_with_digest (
@@ -810,7 +810,7 @@ impl REClient {
810
810
..Default :: default ( )
811
811
} ,
812
812
)
813
- . await ?;
813
+ . await ?;
814
814
Ok ( digest)
815
815
}
816
816
@@ -851,7 +851,7 @@ impl REClient {
851
851
}
852
852
} ,
853
853
)
854
- . await
854
+ . await
855
855
}
856
856
857
857
pub async fn get_digests_ttl (
@@ -1148,9 +1148,9 @@ async fn download_impl<Byt, BytRet, Cas>(
1148
1148
bystream_fut : impl Fn ( ReadRequest ) -> Byt + Sync + Send + Copy ,
1149
1149
) -> anyhow:: Result < DownloadResponse >
1150
1150
where
1151
- Byt : Future < Output = anyhow:: Result < Pin < Box < BytRet > > > > ,
1152
- BytRet : Stream < Item = Result < ReadResponse , tonic:: Status > > ,
1153
- Cas : Future < Output = anyhow:: Result < BatchReadBlobsResponse > > ,
1151
+ Byt : Future < Output = anyhow:: Result < Pin < Box < BytRet > > > > ,
1152
+ BytRet : Stream < Item = Result < ReadResponse , tonic:: Status > > ,
1153
+ Cas : Future < Output = anyhow:: Result < BatchReadBlobsResponse > > ,
1154
1154
{
1155
1155
let bystream_fut = |digest : TDigest | async move {
1156
1156
let hash = digest. hash ;
@@ -1168,8 +1168,8 @@ where
1168
1168
read_offset : 0 ,
1169
1169
read_limit : 0 ,
1170
1170
} )
1171
- . await
1172
- . with_context ( || format ! ( "Failed to read {} from Bytestream service" , resource_name) )
1171
+ . await
1172
+ . with_context ( || format ! ( "Failed to read {} from Bytestream service" , resource_name) )
1173
1173
} ;
1174
1174
1175
1175
let inlined_digests = request. inlined_digests . unwrap_or_default ( ) ;
@@ -1323,8 +1323,8 @@ async fn upload_impl<Byt, Cas>(
1323
1323
bystream_fut : impl Fn ( Vec < WriteRequest > ) -> Byt + Sync + Send + Copy ,
1324
1324
) -> anyhow:: Result < UploadResponse >
1325
1325
where
1326
- Cas : Future < Output = anyhow:: Result < BatchUpdateBlobsResponse > > + Send ,
1327
- Byt : Future < Output = anyhow:: Result < WriteResponse > > + Send ,
1326
+ Cas : Future < Output = anyhow:: Result < BatchUpdateBlobsResponse > > + Send ,
1327
+ Byt : Future < Output = anyhow:: Result < WriteResponse > > + Send ,
1328
1328
{
1329
1329
// NOTE if we stop recording blob_hashes, we can drop out a lot of allocations.
1330
1330
let mut upload_futures: Vec < BoxFuture < anyhow:: Result < Vec < String > > > > = vec ! [ ] ;
@@ -1562,8 +1562,8 @@ fn with_re_metadata<T>(
1562
1562
platform : metadata. platform ,
1563
1563
use_case_id : Some ( metadata. use_case_id ) ,
1564
1564
}
1565
- . encode ( & mut encoded)
1566
- . expect ( "Encoding into a Vec cannot not fail" ) ;
1565
+ . encode ( & mut encoded)
1566
+ . expect ( "Encoding into a Vec cannot not fail" ) ;
1567
1567
1568
1568
msg. metadata_mut ( )
1569
1569
. insert_bin ( "re-metadata-bin" , MetadataValue :: from_bytes ( & encoded) ) ;
@@ -1584,8 +1584,8 @@ fn with_re_metadata<T>(
1584
1584
target_id : "" . to_owned ( ) ,
1585
1585
configuration_id : "" . to_owned ( ) ,
1586
1586
}
1587
- . encode ( & mut encoded)
1588
- . expect ( "Encoding into a Vec cannot not fail" ) ;
1587
+ . encode ( & mut encoded)
1588
+ . expect ( "Encoding into a Vec cannot not fail" ) ;
1589
1589
1590
1590
msg. metadata_mut ( ) . insert_bin (
1591
1591
"build.bazel.remote.execution.v2.requestmetadata-bin" ,
@@ -1713,7 +1713,7 @@ mod tests {
1713
1713
} ,
1714
1714
|_digest| async move { anyhow:: Ok ( Box :: pin ( futures:: stream:: iter ( vec ! [ ] ) ) ) } ,
1715
1715
)
1716
- . await ?;
1716
+ . await ?;
1717
1717
1718
1718
assert_eq ! ( tokio:: fs:: read( & path1) . await ?, vec![ 1 , 2 , 3 ] ) ;
1719
1719
assert_eq ! ( tokio:: fs:: read( & path2) . await ?, vec![ 4 , 5 , 6 ] ) ;
@@ -1827,7 +1827,7 @@ mod tests {
1827
1827
}
1828
1828
} ,
1829
1829
)
1830
- . await ?;
1830
+ . await ?;
1831
1831
1832
1832
assert_eq ! ( tokio:: fs:: read( & path1) . await ?, vec![ 1 , 2 , 3 ] ) ;
1833
1833
assert_eq ! ( tokio:: fs:: read( & path2) . await ?, blob_data) ;
@@ -1900,7 +1900,7 @@ mod tests {
1900
1900
} ,
1901
1901
|_digest| async move { anyhow:: Ok ( Box :: pin ( futures:: stream:: iter ( vec ! [ ] ) ) ) } ,
1902
1902
)
1903
- . await ?;
1903
+ . await ?;
1904
1904
1905
1905
let inlined_blobs = res. inlined_blobs . unwrap ( ) ;
1906
1906
@@ -1986,7 +1986,7 @@ mod tests {
1986
1986
} ,
1987
1987
|_digest| async move { anyhow:: Ok ( Box :: pin ( futures:: stream:: iter ( vec ! [ ] ) ) ) } ,
1988
1988
)
1989
- . await ?;
1989
+ . await ?;
1990
1990
1991
1991
let inlined_blobs = res. inlined_blobs . unwrap ( ) ;
1992
1992
@@ -2062,7 +2062,7 @@ mod tests {
2062
2062
}
2063
2063
} ,
2064
2064
)
2065
- . await ?;
2065
+ . await ?;
2066
2066
2067
2067
let inlined_blobs = res. inlined_blobs . unwrap ( ) ;
2068
2068
@@ -2105,7 +2105,7 @@ mod tests {
2105
2105
} ,
2106
2106
|_digest| async move { anyhow:: Ok ( Box :: pin ( futures:: stream:: iter ( vec ! [ ] ) ) ) } ,
2107
2107
)
2108
- . await ?;
2108
+ . await ?;
2109
2109
2110
2110
let inlined_blobs = res. inlined_blobs . unwrap ( ) ;
2111
2111
@@ -2140,7 +2140,7 @@ mod tests {
2140
2140
anyhow:: Ok ( Box :: pin ( futures:: stream:: iter ( vec ! [ ] ) ) )
2141
2141
} ,
2142
2142
)
2143
- . await ?;
2143
+ . await ?;
2144
2144
2145
2145
Ok ( ( ) )
2146
2146
}
@@ -2219,7 +2219,7 @@ mod tests {
2219
2219
} ,
2220
2220
|_req| async { panic ! ( "A Bytestream upload should not be triggered" ) } ,
2221
2221
)
2222
- . await ?;
2222
+ . await ?;
2223
2223
2224
2224
Ok ( ( ) )
2225
2225
}
@@ -2311,7 +2311,7 @@ mod tests {
2311
2311
}
2312
2312
} ,
2313
2313
)
2314
- . await ?;
2314
+ . await ?;
2315
2315
Ok ( ( ) )
2316
2316
}
2317
2317
@@ -2386,7 +2386,7 @@ mod tests {
2386
2386
}
2387
2387
} ,
2388
2388
)
2389
- . await ?;
2389
+ . await ?;
2390
2390
Ok ( ( ) )
2391
2391
}
2392
2392
@@ -2430,7 +2430,7 @@ mod tests {
2430
2430
anyhow:: Ok ( WriteResponse { committed_size : 10 } )
2431
2431
} ,
2432
2432
)
2433
- . await ;
2433
+ . await ;
2434
2434
2435
2435
let err: anyhow:: Error = resp. unwrap_err ( ) ;
2436
2436
// can't compare the full message because tempfile is used
@@ -2492,7 +2492,7 @@ mod tests {
2492
2492
anyhow:: Ok ( WriteResponse { committed_size : 6 } )
2493
2493
} ,
2494
2494
)
2495
- . await ?;
2495
+ . await ?;
2496
2496
Ok ( ( ) )
2497
2497
}
2498
2498
@@ -2531,7 +2531,7 @@ mod tests {
2531
2531
panic ! ( "Not called" ) ;
2532
2532
} ,
2533
2533
)
2534
- . await ;
2534
+ . await ;
2535
2535
2536
2536
assert ! ( res. is_err( ) ) ; // Should not panic.
2537
2537
@@ -2579,7 +2579,7 @@ mod tests {
2579
2579
anyhow:: Ok ( WriteResponse { committed_size : 3 } )
2580
2580
} ,
2581
2581
)
2582
- . await ?;
2582
+ . await ?;
2583
2583
2584
2584
Ok ( ( ) )
2585
2585
}
0 commit comments