Skip to content

Commit

Permalink
feat: remove ids in TriggerDownloadTaskResponse (#237)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Dec 19, 2023
1 parent a5e7794 commit 82e3f21
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 180 deletions.
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.68"
version = "2.0.69"
authors = ["Gaius <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
212 changes: 89 additions & 123 deletions pkg/apis/dfdaemon/v2/dfdaemon.pb.go

Large diffs are not rendered by default.

33 changes: 0 additions & 33 deletions pkg/apis/dfdaemon/v2/dfdaemon.pb.validate.go

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

6 changes: 0 additions & 6 deletions pkg/apis/dfdaemon/v2/dfdaemon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ message TriggerDownloadTaskRequest {

// TriggerDownloadTaskResponse represents response of TriggerDownloadTask.
message TriggerDownloadTaskResponse {
// Host id.
string host_id = 1 [(validate.rules).string.min_len = 1];
// Task id.
string task_id = 2 [(validate.rules).string.min_len = 1];
// Peer id.
string peer_id = 3 [(validate.rules).string.min_len = 1];
}

// SyncPiecesRequest represents request of SyncPieces.
Expand Down
6 changes: 0 additions & 6 deletions proto/dfdaemon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ message TriggerDownloadTaskRequest {

// TriggerDownloadTaskResponse represents response of TriggerDownloadTask.
message TriggerDownloadTaskResponse {
// Host id.
string host_id = 1;
// Task id.
string task_id = 2;
// Peer id.
string peer_id = 3;
}

// SyncPiecesRequest represents request of SyncPieces.
Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.
12 changes: 1 addition & 11 deletions src/dfdaemon.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,7 @@ pub struct TriggerDownloadTaskRequest {
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TriggerDownloadTaskResponse {
/// Host id.
#[prost(string, tag = "1")]
pub host_id: ::prost::alloc::string::String,
/// Task id.
#[prost(string, tag = "2")]
pub task_id: ::prost::alloc::string::String,
/// Peer id.
#[prost(string, tag = "3")]
pub peer_id: ::prost::alloc::string::String,
}
pub struct TriggerDownloadTaskResponse {}
/// SyncPiecesRequest represents request of SyncPieces.
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down

0 comments on commit 82e3f21

Please sign in to comment.