implement tmp ban feature for the unresolvable info-hashes, make sleep timer optional, rename i to h (hash)

This commit is contained in:
yggverse 2025-08-13 15:16:45 +03:00
parent 8a9c928b98
commit d1e93638d9
2 changed files with 57 additions and 25 deletions

View file

@ -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)]