aquatic_udp: split cleaning interval for connections and torrents

This commit is contained in:
Joakim Frostegård 2021-11-03 00:07:52 +01:00
parent 5f10e5e7f4
commit afe3e2465f
5 changed files with 20 additions and 13 deletions

View file

@ -141,7 +141,9 @@ pub fn run_inner(config: Config, state: State) -> ::anyhow::Result<()> {
.unwrap();
loop {
::std::thread::sleep(Duration::from_secs(config.cleaning.interval));
::std::thread::sleep(Duration::from_secs(
config.cleaning.torrent_cleaning_interval,
));
state.torrents.lock().clean(&config, &state.access_list);
}