diff --git a/geneit_backend/Cargo.toml b/geneit_backend/Cargo.toml index 78d7b38..eb02be0 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.194", features = ["derive"] } serde_json = "1.0.110" mailchecker = "6.0.1" -redis = "0.23.3" +redis = "0.24.0" lettre = "0.11.2" rand = "0.8.5" bcrypt = "0.15.0" diff --git a/geneit_backend/src/connections/redis_connection.rs b/geneit_backend/src/connections/redis_connection.rs index d3f8692..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 usize)?))?; + execute_request(|conn| Ok(conn.set_ex(key, value_str, lifetime.as_secs())?))?; Ok(()) }