mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-04-01 09:35:37 +00:00
implement tmp ban feature for the unresolvable info-hashes, make sleep timer optional, rename i to h (hash)
This commit is contained in:
parent
8a9c928b98
commit
d1e93638d9
2 changed files with 57 additions and 25 deletions
|
|
@ -99,8 +99,12 @@ pub struct Config {
|
|||
pub add_torrent_timeout: u64,
|
||||
|
||||
/// Crawl loop delay in seconds
|
||||
#[arg(long, default_value_t = 300)]
|
||||
pub sleep: u64,
|
||||
#[arg(long)]
|
||||
pub sleep: Option<u64>,
|
||||
|
||||
/// Ban unresolvable info-hashes for `n` seconds
|
||||
#[arg(long, default_value_t = 3600)]
|
||||
pub ban: u64,
|
||||
|
||||
/// Limit download speed (b/s)
|
||||
#[arg(long)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue