Skip to content

Commit

Permalink
feat(server): Remove NamedService implementation for Either
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Sep 24, 2024
1 parent 5568ea2 commit d05a489
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tonic/src/transport/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ use tower::{
layer::util::{Identity, Stack},
layer::Layer,
limit::concurrency::ConcurrencyLimitLayer,
util::{BoxCloneService, Either},
util::BoxCloneService,
Service, ServiceBuilder, ServiceExt,
};

Expand Down Expand Up @@ -137,10 +137,6 @@ pub struct Router<L = Identity> {
routes: Routes,
}

impl<S: NamedService, T> NamedService for Either<S, T> {
const NAME: &'static str = S::NAME;
}

impl Server {
/// Create a new server builder that can configure a [`Server`].
pub fn builder() -> Self {
Expand Down

0 comments on commit d05a489

Please sign in to comment.