From d05a48940379a491393c559aac4b93f03fcd892a Mon Sep 17 00:00:00 2001 From: tottoto Date: Thu, 19 Sep 2024 23:55:29 +0900 Subject: [PATCH] feat(server): Remove NamedService implementation for Either --- tonic/src/transport/server/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 {