mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00
Inc default interval in --rate-limit
to 10ms (#804)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
9874dca454
commit
89b920a876
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ pub struct Args {
|
||||||
|
|
||||||
/// Override the rate limit duration.
|
/// 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:
|
/// Example:
|
||||||
///
|
///
|
||||||
|
@ -290,7 +290,7 @@ impl FromStr for RateLimit {
|
||||||
impl Default for RateLimit {
|
impl Default for RateLimit {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
duration: NonZeroU64::new(5).unwrap(),
|
duration: NonZeroU64::new(10).unwrap(),
|
||||||
request_count: NonZeroU64::new(1).unwrap(),
|
request_count: NonZeroU64::new(1).unwrap(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue