Skip to content

Commit

Permalink
Refactor: rename mod impls to tokio_impls
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Aug 1, 2024
1 parent 7a063a8 commit 6368d5f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion openraft/src/impls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ pub use crate::node::BasicNode;
pub use crate::node::EmptyNode;
pub use crate::raft::responder::impls::OneshotResponder;
#[cfg(feature = "tokio-rt")]
pub use crate::type_config::async_runtime::impls::TokioRuntime;
pub use crate::type_config::async_runtime::tokio_impls::TokioRuntime;
2 changes: 1 addition & 1 deletion openraft/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub use anyerror::AnyError;
pub use openraft_macros::add_async_trait;
pub use type_config::async_runtime;
#[cfg(feature = "tokio-rt")]
pub use type_config::async_runtime::impls::TokioRuntime;
pub use type_config::async_runtime::tokio_impls::TokioRuntime;
pub use type_config::AsyncRuntime;

pub use crate::base::OptionalSend;
Expand Down
7 changes: 3 additions & 4 deletions openraft/src/type_config/async_runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
//! `async` runtime is an abstraction over different asynchronous runtimes, such as `tokio`,
//! `async-std`, etc.

pub(crate) mod impls {
#[cfg(feature = "tokio-rt")]
mod tokio_runtime;
pub(crate) mod tokio_impls {
#![cfg(feature = "tokio-rt")]

#[cfg(feature = "tokio-rt")]
mod tokio_runtime;
pub use tokio_runtime::TokioRuntime;
}
pub mod mpsc_unbounded;
Expand Down

0 comments on commit 6368d5f

Please sign in to comment.