From 3a730765288733b8bbcb51b8cfa7143c223964ba Mon Sep 17 00:00:00 2001 From: Gaius Date: Fri, 6 Dec 2024 16:31:42 +0800 Subject: [PATCH] chore: update api version to 2.0.177 Signed-off-by: Gaius --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- dragonfly-client-config/src/dfdaemon.rs | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 47c910ff..1ab257dc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index 8ef1d225..16042817 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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", diff --git a/dragonfly-client-config/src/dfdaemon.rs b/dragonfly-client-config/src/dfdaemon.rs index 1da59bc5..9e2e79cb 100644 --- a/dragonfly-client-config/src/dfdaemon.rs +++ b/dragonfly-client-config/src/dfdaemon.rs @@ -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,