mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-04-01 09:35:37 +00:00
separate ban timeout config option, update ban handlers
This commit is contained in:
parent
7568a9e77d
commit
9a2f184a19
2 changed files with 16 additions and 14 deletions
|
|
@ -94,18 +94,22 @@ pub struct Config {
|
|||
#[arg(long, default_value_t = 1000)]
|
||||
pub index_capacity: usize,
|
||||
|
||||
/// Max time to handle each torrent
|
||||
/// Max time in seconds to add new torrent
|
||||
#[arg(long, default_value_t = 60)]
|
||||
pub add_torrent_timeout: u64,
|
||||
|
||||
/// Ban time in seconds on torrent add failure
|
||||
#[arg(long, default_value_t = 3600)]
|
||||
pub add_torrent_ban: u64,
|
||||
|
||||
/// Ban time in seconds on torrent resolve failure
|
||||
#[arg(long, default_value_t = 3600)]
|
||||
pub resolve_torrent_ban: u64,
|
||||
|
||||
/// Crawl loop delay in seconds
|
||||
#[arg(long, default_value_t = 60)]
|
||||
pub sleep: u64,
|
||||
|
||||
/// Ban unresolvable info-hashes for `n` seconds
|
||||
#[arg(long, default_value_t = 3600)]
|
||||
pub ban: u64,
|
||||
|
||||
/// Limit download speed (b/s)
|
||||
#[arg(long)]
|
||||
pub download_limit: Option<u32>, // * reminder: upload feature is not planed by the crawler impl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue