Skip to content

Commit

Permalink
feat: rename request to response in DownloadTaskResponse (#265)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Jan 29, 2024
1 parent db13215 commit 6f6b2a8
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 129 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.88"
version = "2.0.89"
authors = ["Gaius <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
201 changes: 101 additions & 100 deletions pkg/apis/dfdaemon/v2/dfdaemon.pb.go

Large diffs are not rendered by default.

36 changes: 18 additions & 18 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: 3 additions & 3 deletions pkg/apis/dfdaemon/v2/dfdaemon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ message DownloadTaskResponse {
oneof response {
option (validate.required) = true;

DownloadTaskStartedResponse download_task_started_request = 4;
DownloadTaskFinishedResponse download_task_finished_request = 5;
DownloadPieceFinishedResponse download_piece_finished_request = 6;
DownloadTaskStartedResponse download_task_started_response = 4;
DownloadTaskFinishedResponse download_task_finished_response = 5;
DownloadPieceFinishedResponse download_piece_finished_response = 6;
}
}

Expand Down
6 changes: 3 additions & 3 deletions proto/dfdaemon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ message DownloadTaskResponse {
string peer_id = 3;

oneof response {
DownloadTaskStartedResponse download_task_started_request = 4;
DownloadTaskFinishedResponse download_task_finished_request = 5;
DownloadPieceFinishedResponse download_piece_finished_request = 6;
DownloadTaskStartedResponse download_task_started_response = 4;
DownloadTaskFinishedResponse download_task_finished_response = 5;
DownloadPieceFinishedResponse download_piece_finished_response = 6;
}
}

Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.
6 changes: 3 additions & 3 deletions src/dfdaemon.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ pub mod download_task_response {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Response {
#[prost(message, tag = "4")]
DownloadTaskStartedRequest(super::DownloadTaskStartedResponse),
DownloadTaskStartedResponse(super::DownloadTaskStartedResponse),
#[prost(message, tag = "5")]
DownloadTaskFinishedRequest(super::DownloadTaskFinishedResponse),
DownloadTaskFinishedResponse(super::DownloadTaskFinishedResponse),
#[prost(message, tag = "6")]
DownloadPieceFinishedRequest(super::DownloadPieceFinishedResponse),
DownloadPieceFinishedResponse(super::DownloadPieceFinishedResponse),
}
}
/// UploadTaskRequest represents request of UploadTask.
Expand Down

0 comments on commit 6f6b2a8

Please sign in to comment.