Skip to content

Commit

Permalink
feat(transport): Rename reexported axum body (#1752)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Jun 23, 2024
1 parent 4c6dffc commit 5d7bfc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/src/h2c/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ mod h2c {
use http::{Request, Response};
use hyper::body::Incoming;
use hyper_util::{rt::TokioExecutor, service::TowerToHyperService};
use tonic::{body::empty_body, transport::AxumBoxBody};
use tonic::{body::empty_body, transport::AxumBody};
use tower::Service;

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

impl<S> Service<Request<Incoming>> for H2c<S>
where
S: Service<Request<Incoming>, Response = Response<AxumBoxBody>> + Clone + Send + 'static,
S: Service<Request<Incoming>, Response = Response<AxumBody>> + Clone + Send + 'static,
S::Future: Send + 'static,
S::Error: Into<BoxError> + Sync + Send + 'static,
S::Response: Send + 'static,
Expand Down
2 changes: 1 addition & 1 deletion tonic/src/transport/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub use self::service::grpc_timeout::TimeoutExpired;
#[cfg(feature = "tls")]
pub use self::tls::Certificate;
#[cfg(feature = "server")]
pub use axum::{body::Body as AxumBoxBody, Router as AxumRouter};
pub use axum::{body::Body as AxumBody, Router as AxumRouter};
pub use hyper::{body::Body, Uri};
#[cfg(feature = "tls")]
pub use tokio_rustls::rustls::pki_types::CertificateDer;
Expand Down

0 comments on commit 5d7bfc2

Please sign in to comment.