Skip to content

Commit 40de540

Browse files
authored
Publically export BlockedClient and DetachedFromClient (#108)
These are used in the public ThreadSafeContext API, but were not public. This limits users to using these types implicitly, and prevents them from specifying those types in function signatures.
1 parent 2df59da commit 40de540

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/context/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mod timer;
1414
pub(crate) mod thread_safe;
1515

1616
#[cfg(feature = "experimental-api")]
17-
mod blocked;
17+
pub(crate) mod blocked;
1818

1919
/// `Context` is a structure that's designed to give us a high-level interface to
2020
/// the Redis module API by abstracting away the raw C FFI calls.

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ pub mod logging;
2323
mod macros;
2424

2525
#[cfg(feature = "experimental-api")]
26-
pub use crate::context::thread_safe::ThreadSafeContext;
26+
pub use crate::context::blocked::BlockedClient;
27+
#[cfg(feature = "experimental-api")]
28+
pub use crate::context::thread_safe::{DetachedFromClient, ThreadSafeContext};
2729

2830
pub use crate::context::Context;
2931
pub use crate::redismodule::*;

0 commit comments

Comments
 (0)