From 89b920a8762c9ed89dd7fdb0f8289993b40f55e0 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Wed, 15 Feb 2023 17:07:25 +1100 Subject: [PATCH] Inc default interval in `--rate-limit` to 10ms (#804) Signed-off-by: Jiahao XU --- crates/bin/src/args.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bin/src/args.rs b/crates/bin/src/args.rs index 5cae7d82..7fe87a27 100644 --- a/crates/bin/src/args.rs +++ b/crates/bin/src/args.rs @@ -118,7 +118,7 @@ pub struct Args { /// Override the rate limit duration. /// - /// By default, cargo-binstall allows one request per 5 ms. + /// By default, cargo-binstall allows one request per 10 ms. /// /// Example: /// @@ -290,7 +290,7 @@ impl FromStr for RateLimit { impl Default for RateLimit { fn default() -> Self { Self { - duration: NonZeroU64::new(5).unwrap(), + duration: NonZeroU64::new(10).unwrap(), request_count: NonZeroU64::new(1).unwrap(), } }