mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic_udp: use access list cache when cleaning torrents
This commit is contained in:
parent
fdaafae4b7
commit
dce256a987
2 changed files with 6 additions and 4 deletions
|
|
@ -110,9 +110,9 @@ impl TorrentMaps {
|
|||
/// Remove disallowed and inactive torrents
|
||||
pub fn clean(&mut self, config: &Config, access_list: &Arc<AccessListArcSwap>) {
|
||||
let now = Instant::now();
|
||||
let access_list_mode = config.access_list.mode;
|
||||
|
||||
let mut access_list_cache = create_access_list_cache(access_list);
|
||||
let access_list_mode = config.access_list.mode;
|
||||
|
||||
self.ipv4.retain(|info_hash, torrent| {
|
||||
access_list_cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue