From c410117931b5bd44a02aece6be3f0dfdec6b2a85 Mon Sep 17 00:00:00 2001 From: mosttt Date: Fri, 2 Feb 2024 16:25:29 +0800 Subject: [PATCH] fix bugs --- Cargo.toml | 1 + proc_qq_template/src/database/redis.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b3c28ab..a771596 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ [workspace] +resolver = "2" members = [ "proc_qq", "proc_qq_codegen", diff --git a/proc_qq_template/src/database/redis.rs b/proc_qq_template/src/database/redis.rs index 71951f0..ee0f209 100644 --- a/proc_qq_template/src/database/redis.rs +++ b/proc_qq_template/src/database/redis.rs @@ -40,7 +40,7 @@ where .unwrap() .get_async_connection() .await? - .set_ex(key, value, expire_seconds) + .set_ex(key, value, expire_seconds as u64) .await }