Skip to content

Commit

Permalink
limit the number of requests per second to 20 by default
Browse files Browse the repository at this point in the history
this is still configurable
may make downloading some large images slightly slower
but reduces risks of the download failing altogether
  • Loading branch information
lovasoa committed Oct 4, 2023
1 parent 9e64c99 commit 76fe021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub struct Arguments {
/// This throttles the flow of image tile requests coming from your computer,
/// reducing the risk of crashing the remote server of getting banned for making too many
/// requests in a short succession.
#[arg(short = 'i', long, default_value = "0s", value_parser = parse_duration)]
#[arg(short = 'i', long, default_value = "50ms", value_parser = parse_duration)]
pub min_interval: Duration,

/// Maximum time between the beginning of a request and the end of a response before
Expand Down

0 comments on commit 76fe021

Please sign in to comment.