mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
implement torrent resolve timeout with argument option
This commit is contained in:
parent
307a935d7f
commit
ce36c5dd87
3 changed files with 43 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue