mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-04-01 01:25:36 +00:00
implement --index-timeout option
This commit is contained in:
parent
e4279b7cab
commit
ae4e2e4ba9
4 changed files with 19 additions and 4 deletions
|
|
@ -117,6 +117,10 @@ pub struct Config {
|
|||
#[arg(long, default_value_t = 1000)]
|
||||
pub index_capacity: usize,
|
||||
|
||||
/// Remove records from index older than `seconds`
|
||||
#[arg(long)]
|
||||
pub index_timeout: Option<i64>,
|
||||
|
||||
/// Max time to handle each torrent
|
||||
#[arg(long, default_value_t = 10)]
|
||||
pub add_torrent_timeout: u64,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue