mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Fix "Too many "Too Many Requests" log" (#761)
Fixed #747 - Add dep compact_str v0.6.1 to binstalk-downloader - Impl new type `DelayRequest` - Handle 503/429 with wait duration > `MAX_RETRY_DURATION` by simply taking the min - Fix `Client::send_request_inner`: Ensure 503/429 get propagated to other requests even if the current requests reach its maximum retry and decides to simply return an error. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
e510511487
commit
f2fc37eea5
4 changed files with 134 additions and 12 deletions
|
@ -16,6 +16,7 @@ async_zip = { version = "0.0.9", features = ["deflate", "bzip2", "lzma", "zstd",
|
|||
binstalk-types = { version = "0.2.0", path = "../binstalk-types" }
|
||||
bytes = "1.4.0"
|
||||
bzip2 = "0.4.4"
|
||||
compact_str = "0.6.1"
|
||||
digest = "0.10.6"
|
||||
flate2 = { version = "1.0.25", default-features = false }
|
||||
futures-util = { version = "0.3.26", default-features = false, features = ["std"] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue