@@ -90,7 +90,7 @@ pub mod metrics_service_client {
9090 }
9191 impl < T > MetricsServiceClient < T >
9292 where
93- T : tonic:: client:: GrpcService < tonic:: body:: BoxBody > ,
93+ T : tonic:: client:: GrpcService < tonic:: body:: Body > ,
9494 T :: Error : Into < StdError > ,
9595 T :: ResponseBody : Body < Data = Bytes > + std:: marker:: Send + ' static ,
9696 <T :: ResponseBody as Body >:: Error : Into < StdError > + std:: marker:: Send ,
@@ -111,13 +111,13 @@ pub mod metrics_service_client {
111111 F : tonic:: service:: Interceptor ,
112112 T :: ResponseBody : Default ,
113113 T : tonic:: codegen:: Service <
114- http:: Request < tonic:: body:: BoxBody > ,
114+ http:: Request < tonic:: body:: Body > ,
115115 Response = http:: Response <
116- <T as tonic:: client:: GrpcService < tonic:: body:: BoxBody > >:: ResponseBody ,
116+ <T as tonic:: client:: GrpcService < tonic:: body:: Body > >:: ResponseBody ,
117117 > ,
118118 > ,
119119 <T as tonic:: codegen:: Service <
120- http:: Request < tonic:: body:: BoxBody > ,
120+ http:: Request < tonic:: body:: Body > ,
121121 > >:: Error : Into < StdError > + std:: marker:: Send + std:: marker:: Sync ,
122122 {
123123 MetricsServiceClient :: new ( InterceptedService :: new ( inner, interceptor) )
@@ -278,7 +278,7 @@ pub mod metrics_service_server {
278278 B : Body + std:: marker:: Send + ' static ,
279279 B :: Error : Into < StdError > + std:: marker:: Send + ' static ,
280280 {
281- type Response = http:: Response < tonic:: body:: BoxBody > ;
281+ type Response = http:: Response < tonic:: body:: Body > ;
282282 type Error = std:: convert:: Infallible ;
283283 type Future = BoxFuture < Self :: Response , Self :: Error > ;
284284 fn poll_ready (
@@ -336,7 +336,9 @@ pub mod metrics_service_server {
336336 }
337337 _ => {
338338 Box :: pin ( async move {
339- let mut response = http:: Response :: new ( empty_body ( ) ) ;
339+ let mut response = http:: Response :: new (
340+ tonic:: body:: Body :: default ( ) ,
341+ ) ;
340342 let headers = response. headers_mut ( ) ;
341343 headers
342344 . insert (
0 commit comments