diff --git a/src/cache/mod.rs b/src/cache/mod.rs index a1d2248..b99e3a3 100644 --- a/src/cache/mod.rs +++ b/src/cache/mod.rs @@ -17,14 +17,15 @@ pub struct CachedItem { /// Determine whether we should actually use the cached item or not. fn should_use(item: &CachedItem) -> bool { - let current_time: i64 = SystemTime::now() - .duration_since(UNIX_EPOCH) - .expect("SystemTime before UNIX EPOCH!") - .as_secs() - .try_into() - .unwrap(); + // let current_time: i64 = SystemTime::now() + // .duration_since(UNIX_EPOCH) + // .expect("SystemTime before UNIX EPOCH!") + // .as_secs() + // .try_into() + // .unwrap(); - current_time <= (item.cached + (2*60)) && item.content != "" + // current_time <= (item.cached + (2*60)) && item.content != "" + true } lazy_static! {