From ed3e5f48a04b3ec0a5382f05692e4341cd99e4a9 Mon Sep 17 00:00:00 2001 From: Matthieu Guegan Date: Thu, 16 May 2024 09:47:01 +0200 Subject: [PATCH] Fix wrong type due to updated lib See https://github.com/redis-rs/redis-rs/pull/589 --- packages/backend/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/store.rs b/packages/backend/src/store.rs index d18d947..bebf2d2 100644 --- a/packages/backend/src/store.rs +++ b/packages/backend/src/store.rs @@ -36,7 +36,7 @@ pub fn set(id: &String, note: &Note) -> Result<(), &'static str> { match note.expiration { Some(e) => { let seconds = e - now(); - conn.expire(id, seconds as usize) + conn.expire(id, seconds as i64) .map_err(|_| "Unable to set expiration on notion")? } None => {}