mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-10-31 20:34:12 +01:00
Fix wrong type due to updated lib
See https://github.com/redis-rs/redis-rs/pull/589
This commit is contained in:
parent
e08c9d1871
commit
ed3e5f48a0
@ -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 => {}
|
||||
|
Loading…
Reference in New Issue
Block a user