Skip to content

Commit

Permalink
chore(server): Remove unnecessary service bound (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Oct 17, 2024
1 parent b129320 commit 80dd77a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tonic/src/transport/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -900,13 +900,6 @@ impl<L> Router<L> {
pub fn into_service<ResBody>(self) -> L::Service
where
L: Layer<Routes>,
L::Service:
Service<Request<BoxBody>, Response = Response<ResBody>> + Clone + Send + 'static,
<<L as Layer<Routes>>::Service as Service<Request<BoxBody>>>::Future: Send + 'static,
<<L as Layer<Routes>>::Service as Service<Request<BoxBody>>>::Error:
Into<crate::Error> + Send,
ResBody: http_body::Body<Data = Bytes> + Send + 'static,
ResBody::Error: Into<crate::Error>,
{
self.server.service_builder.service(self.routes.prepare())
}
Expand Down

0 comments on commit 80dd77a

Please sign in to comment.