Skip to content

Commit 7993c50

Browse files
dependabot[bot]woshilapin
authored andcommitted
editoast: bump redis from 0.25.4 to 0.27.5 in /editoast
Bumps [redis](https://github.com/redis-rs/redis-rs) from 0.25.4 to 0.27.5. - [Release notes](https://github.com/redis-rs/redis-rs/releases) - [Commits](redis-rs/redis-rs@redis-0.25.4...redis-0.27.5) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Jean SIMARD <woshilapin@tuziwo.info>
1 parent e9f3b96 commit 7993c50

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

editoast/Cargo.lock

+7-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

editoast/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pathfinding = "4.11.0"
154154
postgis_diesel.workspace = true
155155
rand.workspace = true
156156
rangemap.workspace = true
157-
redis = { version = "0.25.4", default-features = false, features = [
157+
redis = { version = "0.27", default-features = false, features = [
158158
"cluster-async",
159159
"connection-manager",
160160
"tokio-comp",

editoast/src/valkey_utils.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ fn no_cache_cmd_handler(cmd: &redis::Cmd) -> std::result::Result<redis::Value, R
3939
|| cmd_name_bytes == "MSET".as_bytes()
4040
|| nb_keys > 1 =>
4141
{
42-
Ok(redis::Value::Bulk(vec![redis::Value::Nil; nb_keys]))
42+
Ok(redis::Value::Array(vec![redis::Value::Nil; nb_keys]))
4343
},
4444
redis::Arg::Simple(_)
4545
if nb_keys == 1 =>
4646
{
4747
Ok(redis::Value::Nil)
4848
},
49-
redis::Arg::Simple(cmd_name_bytes) if cmd_name_bytes == "PING".as_bytes() => Ok(redis::Value::Status("PONG".to_string())),
49+
redis::Arg::Simple(cmd_name_bytes) if cmd_name_bytes == "PING".as_bytes() => Ok(redis::Value::SimpleString("PONG".to_string())),
5050
redis::Arg::Simple(cmd_name_bytes) => unimplemented!(
5151
"valkey command '{}' is not supported by editoast::valkey_utils::ValkeyConnection with '--no-cache'", String::from_utf8(cmd_name_bytes.to_vec())?
5252
),
@@ -232,7 +232,7 @@ impl ValkeyClient {
232232

233233
pub async fn ping_valkey(&self) -> RedisResult<()> {
234234
let mut conn = self.get_connection().await?;
235-
cmd("PING").query_async::<_, ()>(&mut conn).await?;
235+
cmd("PING").query_async::<()>(&mut conn).await?;
236236
trace!("Valkey ping successful");
237237
Ok(())
238238
}

0 commit comments

Comments
 (0)