implement --index-timeout option

This commit is contained in:
yggverse 2025-07-07 18:21:43 +03:00
parent e4279b7cab
commit ae4e2e4ba9
4 changed files with 19 additions and 4 deletions

View file

@ -117,6 +117,10 @@ pub struct Config {
#[arg(long, default_value_t = 1000)]
pub index_capacity: usize,
/// Remove records from index older than `seconds`
#[arg(long)]
pub index_timeout: Option<i64>,
/// Max time to handle each torrent
#[arg(long, default_value_t = 10)]
pub add_torrent_timeout: u64,