update cleanup function api

This commit is contained in:
yggverse 2025-06-15 18:52:24 +03:00
parent 8e8b60fe31
commit 279c5217da
2 changed files with 6 additions and 5 deletions

View file

@ -126,7 +126,7 @@ async fn main() -> Result<()> {
.await?;
// cleanup irrelevant files (see rqbit#408)
if let Some(ref r) = arg.preload_regex {
storage.purge_preload_regex(&i, r)?;
storage.cleanup(&i, r)?;
}
// ignore on the next crawl iterations for this session
index.insert(mt.info_hash().as_string());