Skip to content

Commit 2e29e5a

Browse files
committed
fix example build
1 parent c0107b2 commit 2e29e5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/hello_redisearch.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#[macro_use]
22
extern crate redis_module;
33

4-
use redis_module::{Context, NextArg, RedisError, RedisResult};
5-
use redisearch_api::{self, init, Document, FieldType, Index};
4+
use redis_module::{Context, NextArg, RedisResult};
5+
use redisearch_api::{self, Document, FieldType, Index};
66

77
fn hello_redisearch(_: &Context, args: Vec<String>) -> RedisResult {
88
let mut args = args.into_iter().skip(1);
@@ -42,6 +42,6 @@ redis_module! {
4242
data_types: [],
4343
init: init,
4444
commands: [
45-
["hello_redisearch", hello_redisearch, ""],
45+
["hello_redisearch", hello_redisearch, "readonly", 1, 1, 1],
4646
],
4747
}

0 commit comments

Comments
 (0)