mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
aquatic_http: glommio: periodically update access lists
This commit is contained in:
parent
35b8a1820d
commit
af5816e2ab
3 changed files with 61 additions and 1 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue