@@ -20,7 +20,7 @@ pub mod endpoint_discovery_service_client {
2020 }
2121 impl < T > EndpointDiscoveryServiceClient < T >
2222 where
23- T : tonic:: client:: GrpcService < tonic:: body:: BoxBody > ,
23+ T : tonic:: client:: GrpcService < tonic:: body:: Body > ,
2424 T :: Error : Into < StdError > ,
2525 T :: ResponseBody : Body < Data = Bytes > + std:: marker:: Send + ' static ,
2626 <T :: ResponseBody as Body >:: Error : Into < StdError > + std:: marker:: Send ,
@@ -41,13 +41,13 @@ pub mod endpoint_discovery_service_client {
4141 F : tonic:: service:: Interceptor ,
4242 T :: ResponseBody : Default ,
4343 T : tonic:: codegen:: Service <
44- http:: Request < tonic:: body:: BoxBody > ,
44+ http:: Request < tonic:: body:: Body > ,
4545 Response = http:: Response <
46- <T as tonic:: client:: GrpcService < tonic:: body:: BoxBody > >:: ResponseBody ,
46+ <T as tonic:: client:: GrpcService < tonic:: body:: Body > >:: ResponseBody ,
4747 > ,
4848 > ,
4949 <T as tonic:: codegen:: Service <
50- http:: Request < tonic:: body:: BoxBody > ,
50+ http:: Request < tonic:: body:: Body > ,
5151 > >:: Error : Into < StdError > + std:: marker:: Send + std:: marker:: Sync ,
5252 {
5353 EndpointDiscoveryServiceClient :: new (
@@ -317,7 +317,7 @@ pub mod endpoint_discovery_service_server {
317317 B : Body + std:: marker:: Send + ' static ,
318318 B :: Error : Into < StdError > + std:: marker:: Send + ' static ,
319319 {
320- type Response = http:: Response < tonic:: body:: BoxBody > ;
320+ type Response = http:: Response < tonic:: body:: Body > ;
321321 type Error = std:: convert:: Infallible ;
322322 type Future = BoxFuture < Self :: Response , Self :: Error > ;
323323 fn poll_ready (
@@ -492,7 +492,9 @@ pub mod endpoint_discovery_service_server {
492492 }
493493 _ => {
494494 Box :: pin ( async move {
495- let mut response = http:: Response :: new ( empty_body ( ) ) ;
495+ let mut response = http:: Response :: new (
496+ tonic:: body:: Body :: default ( ) ,
497+ ) ;
496498 let headers = response. headers_mut ( ) ;
497499 headers
498500 . insert (
@@ -549,7 +551,7 @@ pub mod locality_endpoint_discovery_service_client {
549551 }
550552 impl < T > LocalityEndpointDiscoveryServiceClient < T >
551553 where
552- T : tonic:: client:: GrpcService < tonic:: body:: BoxBody > ,
554+ T : tonic:: client:: GrpcService < tonic:: body:: Body > ,
553555 T :: Error : Into < StdError > ,
554556 T :: ResponseBody : Body < Data = Bytes > + std:: marker:: Send + ' static ,
555557 <T :: ResponseBody as Body >:: Error : Into < StdError > + std:: marker:: Send ,
@@ -570,13 +572,13 @@ pub mod locality_endpoint_discovery_service_client {
570572 F : tonic:: service:: Interceptor ,
571573 T :: ResponseBody : Default ,
572574 T : tonic:: codegen:: Service <
573- http:: Request < tonic:: body:: BoxBody > ,
575+ http:: Request < tonic:: body:: Body > ,
574576 Response = http:: Response <
575- <T as tonic:: client:: GrpcService < tonic:: body:: BoxBody > >:: ResponseBody ,
577+ <T as tonic:: client:: GrpcService < tonic:: body:: Body > >:: ResponseBody ,
576578 > ,
577579 > ,
578580 <T as tonic:: codegen:: Service <
579- http:: Request < tonic:: body:: BoxBody > ,
581+ http:: Request < tonic:: body:: Body > ,
580582 > >:: Error : Into < StdError > + std:: marker:: Send + std:: marker:: Sync ,
581583 {
582584 LocalityEndpointDiscoveryServiceClient :: new (
@@ -755,7 +757,7 @@ pub mod locality_endpoint_discovery_service_server {
755757 B : Body + std:: marker:: Send + ' static ,
756758 B :: Error : Into < StdError > + std:: marker:: Send + ' static ,
757759 {
758- type Response = http:: Response < tonic:: body:: BoxBody > ;
760+ type Response = http:: Response < tonic:: body:: Body > ;
759761 type Error = std:: convert:: Infallible ;
760762 type Future = BoxFuture < Self :: Response , Self :: Error > ;
761763 fn poll_ready (
@@ -827,7 +829,9 @@ pub mod locality_endpoint_discovery_service_server {
827829 }
828830 _ => {
829831 Box :: pin ( async move {
830- let mut response = http:: Response :: new ( empty_body ( ) ) ;
832+ let mut response = http:: Response :: new (
833+ tonic:: body:: Body :: default ( ) ,
834+ ) ;
831835 let headers = response. headers_mut ( ) ;
832836 headers
833837 . insert (
0 commit comments