implement torrent files index option

This commit is contained in:
yggverse 2025-07-09 02:33:02 +03:00
parent d0d469ee78
commit 29ff0b52cc
5 changed files with 95 additions and 25 deletions

View file

@ -117,6 +117,10 @@ pub struct Config {
#[arg(long, default_value_t = 1000)]
pub index_capacity: usize,
/// Index torrent files
#[arg(long, default_value_t = false)]
pub index_list: bool,
/// Remove records from index older than `seconds`
#[arg(long)]
pub index_timeout: Option<i64>,