Refactor
This commit is contained in:
parent
5e0faf4da8
commit
6229671212
@ -118,9 +118,9 @@ impl MoreThanText {
|
|||||||
};
|
};
|
||||||
let looper = output.cache.clone();
|
let looper = output.cache.clone();
|
||||||
spawn(async move {
|
spawn(async move {
|
||||||
|
let hold_time = Duration::from_secs(300);
|
||||||
loop {
|
loop {
|
||||||
sleep(Duration::from_secs(1)).await;
|
sleep(Duration::from_secs(1)).await;
|
||||||
let hold_time = Duration::from_secs(300);
|
|
||||||
let mut ids: Vec<String> = Vec::new();
|
let mut ids: Vec<String> = Vec::new();
|
||||||
let mut cache = looper.lock().await;
|
let mut cache = looper.lock().await;
|
||||||
for (id, entry) in cache.iter() {
|
for (id, entry) in cache.iter() {
|
||||||
|
Loading…
Reference in New Issue
Block a user