Skip to content

Commit

Permalink
Add "Debug" to the context.
Browse files Browse the repository at this point in the history
  • Loading branch information
iddm committed Aug 8, 2023
1 parent bc1336c commit 185bced
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ unsafe impl Sync for DetachedContext {}

/// `Context` is a structure that's designed to give us a high-level interface to
/// the Redis module API by abstracting away the raw C FFI calls.
#[derive(Debug)]
pub struct Context {
pub ctx: *mut raw::RedisModuleCtx,
}
Expand All @@ -251,6 +252,7 @@ pub struct Context {
/// This guerd make sure to unset the user when freed.
/// It prevent privilege escalation security issues
/// that can happened by forgeting to unset the user.
#[derive(Debug)]
pub struct ContextUserScope<'ctx> {
ctx: &'ctx Context,
user: *mut raw::RedisModuleUser,
Expand Down

0 comments on commit 185bced

Please sign in to comment.