Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove ids in TriggerDownloadTaskResponse #237

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading