aquatic_http: glommio: periodically update access lists

This commit is contained in:
Joakim Frostegård 2021-10-27 20:33:54 +02:00
parent 35b8a1820d
commit af5816e2ab
3 changed files with 61 additions and 1 deletions

View file

@ -34,7 +34,7 @@ pub async fn run_request_worker(
// Periodically clean torrents and update access list
TimerActionRepeat::repeat(enclose!((config, torrents, access_list) move || {
enclose!((config, torrents, access_list) move || async move {
// update_access_list(config.clone(), access_list.clone()).await;
update_access_list(&config, access_list.clone()).await;
torrents.borrow_mut().clean(&config, &*access_list.borrow());