From aeee95fa13fd221a59ff831170e389bbe50a6773 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 16 Jan 2023 04:16:40 +0100 Subject: [PATCH] cave/store: fix TAG_EXPIRE multiplication --- cave/src/store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cave/src/store.rs b/cave/src/store.rs index 38ea8c6..1da7d47 100644 --- a/cave/src/store.rs +++ b/cave/src/store.rs @@ -292,7 +292,7 @@ impl Store { if let Some(user_id) = &user_id { // users by tag/hour cmd.sadd(&user_key, &user_id).ignore() - .expire(&user_key, TAG_EXPIRE as usize * 86400) + .expire(&user_key, TAG_EXPIRE as usize * 3600) .ignore(); } }; @@ -335,7 +335,7 @@ impl Store { let image_key = format!("i:{}", name); cmd.sadd(&image_key, image) .ignore() - .expire(&image_key, TAG_EXPIRE as usize * 86400) + .expire(&image_key, TAG_EXPIRE as usize * 3600) .ignore() .scard(&image_key); image_keys.push(image_key);