Skip to content

Commit 9b99118

Browse files
committed
Re-enable debug with fixed version of redismodule-rs
1 parent a46927f commit 9b99118

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ libc = "0.2"
1717
time = "0.1"
1818
enum-primitive-derive = "0.1.2"
1919
num-traits = "0.2.8"
20-
redismodule = { git = "https://github.com/RedisLabsModules/redismodule-rs.git", rev = "a070329" }
20+
redismodule = { git = "https://github.com/RedisLabsModules/redismodule-rs.git", rev = "2c37545" }
2121

2222
[build-dependencies]
2323
bindgen = "0.51"

src/index.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ macro_rules! debug {
2525

2626
impl Index {
2727
pub fn create(name: &str) -> Self {
28-
// debug!("Creating index '{}'", name);
28+
debug!("Creating index '{}'", name);
2929

3030
let name = CString::new(name).unwrap();
3131
let index = unsafe { raw::RediSearch_CreateIndex(name.as_ptr(), ptr::null()) };
3232
Self { inner: index }
3333
}
3434

3535
pub fn create_with_options(name: &str, options: &IndexOptions) -> Self {
36-
// debug!("Creating index with options '{}'", name);
36+
debug!("Creating index with options '{}'", name);
3737
let index_options =
3838
unsafe { raw::RediSearch_CreateIndexOptions().as_mut() }.expect("null IndexOptions");
3939

@@ -48,7 +48,7 @@ impl Index {
4848
}
4949

5050
pub fn create_field(&self, name: &str) -> Field {
51-
// debug!("Creating index field '{}'", name);
51+
debug!("Creating index field '{}'", name);
5252
let name = CString::new(name).unwrap();
5353

5454
let ftype = raw::RSFLDTYPE_FULLTEXT;
@@ -64,7 +64,7 @@ impl Index {
6464
}
6565

6666
pub fn add_document(&self, doc: &Document) -> Result<(), RedisError> {
67-
// debug!("Adding document to index");
67+
debug!("Adding document to index");
6868
let status = unsafe {
6969
raw::RediSearch_IndexAddDocument(
7070
self.inner,
@@ -133,7 +133,7 @@ impl Iterator for ResultsIterator<'_> {
133133
return None;
134134
}
135135

136-
// debug!("Getting next result");
136+
debug!("Getting next result");
137137

138138
let mut len = 0usize;
139139
let key = unsafe {
@@ -160,7 +160,7 @@ impl Drop for ResultsIterator<'_> {
160160
return;
161161
}
162162

163-
// debug!("Freeing results iterator");
163+
debug!("Freeing results iterator");
164164
unsafe {
165165
raw::RediSearch_ResultsIteratorFree(self.inner);
166166
};

0 commit comments

Comments
 (0)