Skip to content

Commit

Permalink
feat: remove content_length in Download message (#375)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Aug 19, 2024
1 parent be401d5 commit 5ecabe6
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 134 deletions.
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
[package]
name = "dragonfly-api"
version = "2.0.149"
version = "2.0.150"
authors = ["Gaius <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
215 changes: 100 additions & 115 deletions pkg/apis/common/v2/common.pb.go

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions pkg/apis/common/v2/common.pb.validate.go

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

4 changes: 0 additions & 4 deletions pkg/apis/common/v2/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,6 @@ message Download {
bool prefetch = 16;
// Object Storage related information.
optional ObjectStorage object_storage = 17;
// Content length of the task. If add this field, the task content length will be used the value of this field,
// otherwise the dfdaemon will call the head request to get the task content length.
// Set field of the task content length to skip the head request.
optional uint64 content_length = 18;
}

// Object Storage related information.
Expand Down
4 changes: 0 additions & 4 deletions proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,6 @@ message Download {
bool prefetch = 16;
// Object Storage related information.
optional ObjectStorage object_storage = 17;
// Content length of the task. If add this field, the task content length will be used the value of this field,
// otherwise the dfdaemon will call the head request to get the task content length.
// Set field of the task content length to skip the head request.
optional uint64 content_length = 18;
}

// Object Storage related information.
Expand Down
5 changes: 0 additions & 5 deletions src/common.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,6 @@ pub struct Download {
/// Object Storage related information.
#[prost(message, optional, tag = "17")]
pub object_storage: ::core::option::Option<ObjectStorage>,
/// Content length of the task. If add this field, the task content length will be used the value of this field,
/// otherwise the dfdaemon will call the head request to get the task content length.
/// Set field of the task content length to skip the head request.
#[prost(uint64, optional, tag = "18")]
pub content_length: ::core::option::Option<u64>,
}
/// Object Storage related information.
#[derive(serde::Serialize, serde::Deserialize)]
Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.

0 comments on commit 5ecabe6

Please sign in to comment.