From 065b8736a265b4b6c6f4774a7a66843f1104e6d7 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Wed, 13 Dec 2023 00:15:44 +0000 Subject: [PATCH 1/3] Update Rust crate redis to 0.24.0 --- geneit_backend/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geneit_backend/Cargo.toml b/geneit_backend/Cargo.toml index e2f291e..2469155 100644 --- a/geneit_backend/Cargo.toml +++ b/geneit_backend/Cargo.toml @@ -20,7 +20,7 @@ diesel = { version = "2.1.4", features = ["postgres"] } serde = { version = "1.0.193", features = ["derive"] } serde_json = "1.0.108" mailchecker = "6.0.1" -redis = "0.23.3" +redis = "0.24.0" lettre = "0.11.2" rand = "0.8.5" bcrypt = "0.15.0" -- 2.45.2 From 86d57264bf09dacc4ab561fc73fe0aaf605da52e Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Mon, 4 Mar 2024 09:01:07 +0000 Subject: [PATCH 2/3] Attempt to fix breaking change --- geneit_backend/src/connections/redis_connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geneit_backend/src/connections/redis_connection.rs b/geneit_backend/src/connections/redis_connection.rs index d3f8692..71276b0 100644 --- a/geneit_backend/src/connections/redis_connection.rs +++ b/geneit_backend/src/connections/redis_connection.rs @@ -45,7 +45,7 @@ where { let value_str = serde_json::to_string(value)?; - execute_request(|conn| Ok(conn.set_ex(key, value_str, lifetime.as_secs() as usize)?))?; + execute_request(|conn| Ok(conn.set_ex(key, value_str, lifetime.as_secs() as u64)?))?; Ok(()) } -- 2.45.2 From 544c9e7c015f26e04ae0921334f2eff9410778da Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Mon, 4 Mar 2024 09:03:15 +0000 Subject: [PATCH 3/3] Update geneit_backend/src/connections/redis_connection.rs --- geneit_backend/src/connections/redis_connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geneit_backend/src/connections/redis_connection.rs b/geneit_backend/src/connections/redis_connection.rs index 71276b0..a2d6872 100644 --- a/geneit_backend/src/connections/redis_connection.rs +++ b/geneit_backend/src/connections/redis_connection.rs @@ -45,7 +45,7 @@ where { let value_str = serde_json::to_string(value)?; - execute_request(|conn| Ok(conn.set_ex(key, value_str, lifetime.as_secs() as u64)?))?; + execute_request(|conn| Ok(conn.set_ex(key, value_str, lifetime.as_secs())?))?; Ok(()) } -- 2.45.2