Skip to content

Commit 5d7bfc2

Browse files
authoredJun 23, 2024··
feat(transport): Rename reexported axum body (#1752)
1 parent 4c6dffc commit 5d7bfc2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎examples/src/h2c/server.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ mod h2c {
7171
use http::{Request, Response};
7272
use hyper::body::Incoming;
7373
use hyper_util::{rt::TokioExecutor, service::TowerToHyperService};
74-
use tonic::{body::empty_body, transport::AxumBoxBody};
74+
use tonic::{body::empty_body, transport::AxumBody};
7575
use tower::Service;
7676

7777
#[derive(Clone)]
@@ -83,7 +83,7 @@ mod h2c {
8383

8484
impl<S> Service<Request<Incoming>> for H2c<S>
8585
where
86-
S: Service<Request<Incoming>, Response = Response<AxumBoxBody>> + Clone + Send + 'static,
86+
S: Service<Request<Incoming>, Response = Response<AxumBody>> + Clone + Send + 'static,
8787
S::Future: Send + 'static,
8888
S::Error: Into<BoxError> + Sync + Send + 'static,
8989
S::Response: Send + 'static,

‎tonic/src/transport/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub use self::service::grpc_timeout::TimeoutExpired;
112112
#[cfg(feature = "tls")]
113113
pub use self::tls::Certificate;
114114
#[cfg(feature = "server")]
115-
pub use axum::{body::Body as AxumBoxBody, Router as AxumRouter};
115+
pub use axum::{body::Body as AxumBody, Router as AxumRouter};
116116
pub use hyper::{body::Body, Uri};
117117
#[cfg(feature = "tls")]
118118
pub use tokio_rustls::rustls::pki_types::CertificateDer;

0 commit comments

Comments
 (0)
Please sign in to comment.