diff --git a/tonic/src/transport/server/mod.rs b/tonic/src/transport/server/mod.rs index 62006e1a6..281223e61 100644 --- a/tonic/src/transport/server/mod.rs +++ b/tonic/src/transport/server/mod.rs @@ -64,7 +64,7 @@ use tower::{ layer::util::{Identity, Stack}, layer::Layer, limit::concurrency::ConcurrencyLimitLayer, - util::{BoxCloneService, Either}, + util::BoxCloneService, Service, ServiceBuilder, ServiceExt, }; @@ -137,10 +137,6 @@ pub struct Router { routes: Routes, } -impl NamedService for Either { - const NAME: &'static str = S::NAME; -} - impl Server { /// Create a new server builder that can configure a [`Server`]. pub fn builder() -> Self {