Skip to content

Commit

Permalink
chore(server): Remove BoxHttpBody type alias (#1819)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jul 23, 2024
1 parent 5016dd1 commit 255a885
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tonic/src/transport/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ use tower::{
Service, ServiceBuilder, ServiceExt,
};

type BoxHttpBody = crate::body::BoxBody;
type BoxError = crate::Error;
type BoxService = tower::util::BoxCloneService<Request<BoxBody>, Response<BoxBody>, crate::Error>;
type TraceInterceptor = Arc<dyn Fn(&http::Request<()>) -> tracing::Span + Send + Sync + 'static>;
Expand Down Expand Up @@ -869,7 +868,7 @@ where
ResBody: http_body::Body<Data = Bytes> + Send + 'static,
ResBody::Error: Into<crate::Error>,
{
type Response = Response<BoxHttpBody>;
type Response = Response<BoxBody>;
type Error = crate::Error;
type Future = SvcFuture<S::Future>;

Expand Down Expand Up @@ -913,7 +912,7 @@ where
ResBody: http_body::Body<Data = Bytes> + Send + 'static,
ResBody::Error: Into<crate::Error>,
{
type Output = Result<Response<BoxHttpBody>, crate::Error>;
type Output = Result<Response<BoxBody>, crate::Error>;

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let this = self.project();
Expand Down

0 comments on commit 255a885

Please sign in to comment.