From 622967121216e3f29dda56f9ada9f97164e9cd20 Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Tue, 27 Dec 2022 15:41:49 -0500 Subject: [PATCH] Refactor --- src/morethantext/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {