Refactor
This commit is contained in:
		@@ -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() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user