@@ -7,14 +7,13 @@ use apollo_config::dumping::{ser_param, SerializeConfig};
77use apollo_config:: { ParamPath , ParamPrivacyInput , SerializedParam } ;
88use apollo_infra_utils:: type_name:: short_type_name;
99use async_trait:: async_trait;
10- // TODO(victork): finalise migration to hyper 1.x
1110use bytes:: Bytes ;
12- use http_1 :: header:: CONTENT_TYPE ;
13- use http_1 :: StatusCode ;
11+ use http :: header:: CONTENT_TYPE ;
12+ use http :: StatusCode ;
1413use http_body_util:: { BodyExt , Full } ;
15- use hyper_1 :: body:: Incoming ;
16- use hyper_1 :: service:: { service_fn, Service } ;
17- use hyper_1 :: { Request as HyperRequest , Response as HyperResponse } ;
14+ use hyper :: body:: Incoming ;
15+ use hyper :: service:: { service_fn, Service } ;
16+ use hyper :: { Request as HyperRequest , Response as HyperResponse } ;
1817use hyper_util:: rt:: { TokioExecutor , TokioIo } ;
1918use hyper_util:: server:: conn:: auto:: Builder as ServerBuilder ;
2019use serde:: de:: DeserializeOwned ;
@@ -134,7 +133,7 @@ where
134133 request_id : RequestId ,
135134 local_client : LocalComponentClient < Request , Response > ,
136135 metrics : & ' static RemoteServerMetrics ,
137- ) -> Result < HyperResponse < Full < Bytes > > , hyper_1 :: Error > {
136+ ) -> Result < HyperResponse < Full < Bytes > > , hyper :: Error > {
138137 trace ! ( "Received HTTP request: {http_request:?}" ) ;
139138 let body_bytes = http_request. into_body ( ) . collect ( ) . await ?. to_bytes ( ) ;
140139 trace ! ( "Extracted {} bytes from HTTP request body" , body_bytes. len( ) ) ;
@@ -275,7 +274,7 @@ where
275274 // Error type ambiguity.
276275 let wrapped_response: Result <
277276 HyperResponse < Full < Bytes > > ,
278- hyper_1 :: Error ,
277+ hyper :: Error ,
279278 > = Ok ( response) ;
280279 wrapped_response
281280 } ) ;
0 commit comments