From 86d57264bf09dacc4ab561fc73fe0aaf605da52e Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Mon, 4 Mar 2024 09:01:07 +0000 Subject: [PATCH] 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(()) }