From 255a885d316392a0135fa810ecfd5ae87135a329 Mon Sep 17 00:00:00 2001 From: tottoto Date: Tue, 23 Jul 2024 21:22:08 +0900 Subject: [PATCH] chore(server): Remove BoxHttpBody type alias (#1819) --- tonic/src/transport/server/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tonic/src/transport/server/mod.rs b/tonic/src/transport/server/mod.rs index 31700ee11..3103dc71c 100644 --- a/tonic/src/transport/server/mod.rs +++ b/tonic/src/transport/server/mod.rs @@ -65,7 +65,6 @@ use tower::{ Service, ServiceBuilder, ServiceExt, }; -type BoxHttpBody = crate::body::BoxBody; type BoxError = crate::Error; type BoxService = tower::util::BoxCloneService, Response, crate::Error>; type TraceInterceptor = Arc) -> tracing::Span + Send + Sync + 'static>; @@ -869,7 +868,7 @@ where ResBody: http_body::Body + Send + 'static, ResBody::Error: Into, { - type Response = Response; + type Response = Response; type Error = crate::Error; type Future = SvcFuture; @@ -913,7 +912,7 @@ where ResBody: http_body::Body + Send + 'static, ResBody::Error: Into, { - type Output = Result, crate::Error>; + type Output = Result, crate::Error>; fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { let this = self.project();