Skip to content

Commit

Permalink
chore(transport): Remove re-exported NamedService
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Dec 11, 2023
1 parent 07e4ee1 commit 096ce45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions tonic/src/transport/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down
4 changes: 1 addition & 3 deletions tonic/src/transport/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 _;
Expand Down

0 comments on commit 096ce45

Please sign in to comment.