Skip to content

Commit

Permalink
chore(web): Remove unnecessary bound from GrpcWebLayer (#1986)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Oct 10, 2024
1 parent b9fa30b commit 62f401c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tonic-web/src/layer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use super::{BoxBody, GrpcWebService};
use super::GrpcWebService;

use tower_layer::Layer;
use tower_service::Service;

/// Layer implementing the grpc-web protocol.
#[derive(Debug, Default, Clone)]
Expand All @@ -16,10 +15,7 @@ impl GrpcWebLayer {
}
}

impl<S> Layer<S> for GrpcWebLayer
where
S: Service<http::Request<BoxBody>, Response = http::Response<BoxBody>>,
{
impl<S> Layer<S> for GrpcWebLayer {
type Service = GrpcWebService<S>;

fn layer(&self, inner: S) -> Self::Service {
Expand Down

0 comments on commit 62f401c

Please sign in to comment.