Skip to content

Commit

Permalink
Add a little documentation to more obscure arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
brandur committed Mar 18, 2019
1 parent 03580ba commit addd6a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ pub extern "C" fn RedisModule_OnLoad(
format!("{}\0", command.name()).as_ptr(),
Some(Throttle_RedisCommand),
format!("{}\0", command.str_flags()).as_ptr(),
1,
1,
1,
1, // firstkey: first argument that's a key
1, // lastkey: last argument that's a key
1, // keystep: the step between first and last key
) == raw::Status::Err
{
return raw::Status::Err;
Expand Down

0 comments on commit addd6a4

Please sign in to comment.