implement torrent resolve timeout with argument option

This commit is contained in:
yggverse 2025-06-15 04:10:13 +03:00
parent 307a935d7f
commit ce36c5dd87
3 changed files with 43 additions and 15 deletions

View file

@ -70,6 +70,10 @@ pub struct Argument {
#[arg(long, default_value_t = 1000)]
pub index_capacity: usize,
/// Max time to handle one torrent
#[arg(short, default_value_t = 10)]
pub timeout: u64,
/// Crawl loop delay in seconds
#[arg(short, default_value_t = 300)]
pub sleep: u64,