Skip to content

Commit

Permalink
chore: update api version to 2.0.177 (#887)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Dec 6, 2024
1 parent 865c778 commit c445bd2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 4 additions & 3 deletions dragonfly-client-config/src/dfdaemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,

Expand Down

0 comments on commit c445bd2

Please sign in to comment.