From 096ce4574e6f7ea46776c37a3cf6cb86f2c4f77c Mon Sep 17 00:00:00 2001 From: tottoto Date: Mon, 11 Dec 2023 23:15:24 +0900 Subject: [PATCH] chore(transport): Remove re-exported NamedService --- tonic/src/transport/mod.rs | 3 --- tonic/src/transport/server/mod.rs | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/tonic/src/transport/mod.rs b/tonic/src/transport/mod.rs index c676bfb92..daa8fef92 100644 --- a/tonic/src/transport/mod.rs +++ b/tonic/src/transport/mod.rs @@ -105,9 +105,6 @@ pub use self::server::Server; pub use self::service::grpc_timeout::TimeoutExpired; #[allow(deprecated)] pub use self::tls::Certificate; -#[doc(inline)] -/// A deprecated re-export. Please use `tonic::server::NamedService` directly. -pub use crate::server::NamedService; pub use axum::{body::BoxBody as AxumBoxBody, Router as AxumRouter}; pub use hyper::{Body, Uri}; diff --git a/tonic/src/transport/server/mod.rs b/tonic/src/transport/server/mod.rs index e10f11f68..7f2ffde2b 100644 --- a/tonic/src/transport/server/mod.rs +++ b/tonic/src/transport/server/mod.rs @@ -12,9 +12,6 @@ mod unix; pub use super::service::Routes; pub use super::service::RoutesBuilder; -#[doc(inline)] -/// A deprecated re-export. Please use `tonic::server::NamedService` directly. -pub use crate::server::NamedService; pub use conn::{Connected, TcpConnectInfo}; #[cfg(feature = "tls")] pub use tls::ServerTlsConfig; @@ -39,6 +36,7 @@ use crate::transport::Error; use self::recover_error::RecoverError; use super::service::{GrpcTimeout, ServerIo}; use crate::body::BoxBody; +use crate::server::NamedService; use bytes::Bytes; use http::{Request, Response}; use http_body::Body as _;