Skip to content

Commit

Permalink
feat(server): Remove reexporting service router (#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jul 8, 2024
1 parent 9f5fc3b commit 315bb09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/src/dynamic/server.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::env;
use tonic::{transport::server::RoutesBuilder, transport::Server, Request, Response, Status};
use tonic::{service::RoutesBuilder, transport::Server, Request, Response, Status};

use hello_world::greeter_server::{Greeter, GreeterServer};
use hello_world::{HelloReply, HelloRequest};
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/tests/routes_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use integration_tests::pb::{
test1_client, test1_server, test_client, test_server, Input, Input1, Output, Output1,
};
use tonic::codegen::BoxStream;
use tonic::transport::server::RoutesBuilder;
use tonic::service::RoutesBuilder;
use tonic::{
transport::{Endpoint, Server},
Request, Response, Status,
Expand Down
3 changes: 1 addition & 2 deletions tonic/src/transport/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ mod unix;
use tokio_stream::StreamExt as _;
use tracing::{debug, trace};

/// A deprecated re-export. Please use `tonic::service::{Routes, RoutesBuilder}` directly.
pub use crate::service::{Routes, RoutesBuilder};
use crate::service::Routes;

pub use conn::{Connected, TcpConnectInfo};
use hyper_util::{
Expand Down

0 comments on commit 315bb09

Please sign in to comment.