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 30, 2024
1 parent c5af4b2 commit 3edb560
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 3edb560

Please sign in to comment.