Skip to content

Commit 80dd77a

Browse files
authored
chore(server): Remove unnecessary service bound (#2010)
1 parent b129320 commit 80dd77a

File tree

1 file changed

+0
-7
lines changed
  • tonic/src/transport/server

1 file changed

+0
-7
lines changed

tonic/src/transport/server/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -900,13 +900,6 @@ impl<L> Router<L> {
900900
pub fn into_service<ResBody>(self) -> L::Service
901901
where
902902
L: Layer<Routes>,
903-
L::Service:
904-
Service<Request<BoxBody>, Response = Response<ResBody>> + Clone + Send + 'static,
905-
<<L as Layer<Routes>>::Service as Service<Request<BoxBody>>>::Future: Send + 'static,
906-
<<L as Layer<Routes>>::Service as Service<Request<BoxBody>>>::Error:
907-
Into<crate::Error> + Send,
908-
ResBody: http_body::Body<Data = Bytes> + Send + 'static,
909-
ResBody::Error: Into<crate::Error>,
910903
{
911904
self.server.service_builder.service(self.routes.prepare())
912905
}

0 commit comments

Comments
 (0)