Skip to content

Commit

Permalink
Rust: adds FT.CONFIG GET expected return type
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamazon authored Jan 3, 2024
1 parent 4193198 commit a4532d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion glide-core/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ fn expected_type_for_cmd(cmd: &Cmd) -> Option<ExpectedReturnType> {
let command = cmd.command()?;

match command.as_slice() {
b"HGETALL" | b"XREAD" | b"CONFIG GET" | b"HELLO" => Some(ExpectedReturnType::Map),
b"HGETALL" | b"XREAD" | b"CONFIG GET" | b"FT.CONFIG GET" | b"HELLO" => {
Some(ExpectedReturnType::Map)
}
b"INCRBYFLOAT" | b"HINCRBYFLOAT" => Some(ExpectedReturnType::Double),
b"HEXISTS" | b"EXPIRE" | b"EXPIREAT" | b"PEXPIRE" | b"PEXPIREAT" => {
Some(ExpectedReturnType::Boolean)
Expand Down

0 comments on commit a4532d4

Please sign in to comment.