Skip to content

Commit

Permalink
chore(server): Move io service to server module
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Jun 20, 2024
1 parent 3e316c7 commit f731b6c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions tonic/src/transport/server/incoming.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use super::{Connected, Server};
use crate::transport::service::ServerIo;
use super::{service::ServerIo, Connected, Server};
use std::{
net::{SocketAddr, TcpListener as StdTcpListener},
pin::{pin, Pin},
Expand Down
4 changes: 2 additions & 2 deletions tonic/src/transport/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ pub(crate) use tokio_rustls::server::TlsStream;
#[cfg(feature = "tls")]
use crate::transport::Error;

use self::recover_error::RecoverError;
use super::service::{GrpcTimeout, ServerIo};
use self::{recover_error::RecoverError, service::ServerIo};
use super::service::GrpcTimeout;
use crate::body::{boxed, BoxBody};
use crate::server::NamedService;
use bytes::Bytes;
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions tonic/src/transport/server/service/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
mod io;
pub(crate) use self::io::ServerIo;

#[cfg(feature = "tls")]
mod tls;
#[cfg(feature = "tls")]
Expand Down
4 changes: 0 additions & 4 deletions tonic/src/transport/service/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
pub(crate) mod grpc_timeout;
#[cfg(feature = "server")]
mod io;
#[cfg(feature = "tls")]
pub(crate) mod tls;

pub(crate) use self::grpc_timeout::GrpcTimeout;
#[cfg(feature = "server")]
pub(crate) use self::io::ServerIo;

0 comments on commit f731b6c

Please sign in to comment.