diff --git a/src/morethantext/mod.rs b/src/morethantext/mod.rs index b3fc31b..76fb103 100644 --- a/src/morethantext/mod.rs +++ b/src/morethantext/mod.rs @@ -118,9 +118,9 @@ impl MoreThanText { }; let looper = output.cache.clone(); spawn(async move { + let hold_time = Duration::from_secs(300); loop { sleep(Duration::from_secs(1)).await; - let hold_time = Duration::from_secs(300); let mut ids: Vec = Vec::new(); let mut cache = looper.lock().await; for (id, entry) in cache.iter() {