cave/store: fix TAG_EXPIRE multiplication

This commit is contained in:
Astro 2023-01-16 04:16:40 +01:00
parent 57a9422d74
commit aeee95fa13
1 changed files with 2 additions and 2 deletions

View File

@ -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);