Skip to content

Commit

Permalink
editoast: fix no-cache option usage with docker
Browse files Browse the repository at this point in the history
Faking the ping command to pass the health check

Signed-off-by: Florian Amsallem <florian.amsallem@gmail.com>
  • Loading branch information
flomonster committed Oct 1, 2024
1 parent f2926f3 commit 4535f60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editoast/src/redis_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ fn no_cache_cmd_handler(cmd: &redis::Cmd) -> std::result::Result<redis::Value, R
{
Ok(redis::Value::Nil)
},
redis::Arg::Simple(cmd_name_bytes) if cmd_name_bytes == "PING".as_bytes() => Ok(redis::Value::Status("PONG".to_string())),
redis::Arg::Simple(cmd_name_bytes) => unimplemented!(
"redis command '{}' is not supported by editoast::redis_utils::RedisConnection with '--no-cache'", String::from_utf8(cmd_name_bytes.to_vec())?
),
Expand Down

0 comments on commit 4535f60

Please sign in to comment.