We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47448d0 commit 26d22c2Copy full SHA for 26d22c2
1 file changed
redisql_lib/src/redis_type.rs
@@ -29,20 +29,22 @@ impl Context {
29
}
30
31
pub fn no_client() -> Self {
32
+ debug!("New thread safe context");
33
let ctx = unsafe {
34
ffi::RedisModule_GetThreadSafeContext.unwrap()(
35
std::ptr::null_mut(),
36
)
37
};
38
Context {
39
ctx,
- thread_safe: false,
40
+ thread_safe: true,
41
42
43
pub fn as_ptr(&self) -> *mut ffi::RedisModuleCtx {
44
self.ctx
45
46
pub fn thread_safe(blocked_client: &BlockedClient) -> Context {
47
48
49
50
blocked_client.as_ptr(),
0 commit comments