chore: update api version to 2.0.177 (#887)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
865c7787c5
commit
c445bd2962
|
|
@ -908,9 +908,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "dragonfly-api"
|
||||
version = "2.0.174"
|
||||
version = "2.0.177"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3cd1b2aad02ce9cbc167aaa77cb61d82673feb6360d581c42ee03c113b807a6f"
|
||||
checksum = "a0578dcfe9837e01a7ead547c67aca6e857d45d8ab171c370a5a272f1710a9e9"
|
||||
dependencies = [
|
||||
"prost 0.13.3",
|
||||
"prost-types",
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ dragonfly-client-backend = { path = "dragonfly-client-backend", version = "0.1.1
|
|||
dragonfly-client-util = { path = "dragonfly-client-util", version = "0.1.124" }
|
||||
dragonfly-client-init = { path = "dragonfly-client-init", version = "0.1.124" }
|
||||
thiserror = "1.0"
|
||||
dragonfly-api = "=2.0.174"
|
||||
dragonfly-api = "=2.0.177"
|
||||
reqwest = { version = "0.12.4", features = [
|
||||
"stream",
|
||||
"native-tls",
|
||||
|
|
|
|||
|
|
@ -225,8 +225,8 @@ pub fn default_proxy_read_buffer_size() -> usize {
|
|||
32 * 1024
|
||||
}
|
||||
|
||||
/// default_prefetch_rate_limit is the default rate limit of the prefetch speed in GiB/Mib/Kib per second.
|
||||
/// The prefetch request has lower priority so limit the rate to avoid occupying the bandwidth impact other download tasks.
|
||||
/// default_prefetch_rate_limit is the default rate limit of the prefetch speed in GiB/Mib/Kib per second. The prefetch request
|
||||
/// has lower priority so limit the rate to avoid occupying the bandwidth impact other download tasks.
|
||||
#[inline]
|
||||
fn default_prefetch_rate_limit() -> ByteSize {
|
||||
// Default rate limit is 2GiB/s.
|
||||
|
|
@ -1097,7 +1097,8 @@ pub struct Proxy {
|
|||
/// prefetch pre-downloads full of the task when download with range request.
|
||||
pub prefetch: bool,
|
||||
|
||||
/// rate_limit is the rate limit of the prefetch speed in GiB/Mib/Kib per second.
|
||||
/// prefetch_rate_limit is the rate limit of the prefetch speed in GiB/Mib/Kib per second. The prefetch request
|
||||
/// has lower priority so limit the rate to avoid occupying the bandwidth impact other download tasks.
|
||||
#[serde(with = "bytesize_serde", default = "default_prefetch_rate_limit")]
|
||||
pub prefetch_rate_limit: ByteSize,
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue