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 SyncPiecesFailedRequest in scheduler #223

Merged
merged 1 commit into from
Nov 29, 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.56"
version = "2.0.57"
authors = ["Gaius <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
953 changes: 425 additions & 528 deletions pkg/apis/scheduler/v2/scheduler.pb.go

Large diffs are not rendered by default.

170 changes: 0 additions & 170 deletions pkg/apis/scheduler/v2/scheduler.pb.validate.go

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

9 changes: 0 additions & 9 deletions pkg/apis/scheduler/v2/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,6 @@ message DownloadPieceBackToSourceFailedRequest {
}
}

// SyncPiecesFailedRequest syncs pieces failed request of AnnouncePeerRequest.
message SyncPiecesFailedRequest {
// Parent peer id.
string parent_id = 1 [(validate.rules).string.min_len = 1];
// The description of the error.
optional string description = 2 [(validate.rules).string.min_len = 1];
}

// AnnouncePeerRequest represents request of AnnouncePeer.
message AnnouncePeerRequest {
// Host id.
Expand All @@ -159,7 +151,6 @@ message AnnouncePeerRequest {
DownloadPieceBackToSourceFinishedRequest download_piece_back_to_source_finished_request = 14;
DownloadPieceFailedRequest download_piece_failed_request = 15;
DownloadPieceBackToSourceFailedRequest download_piece_back_to_source_failed_request = 16;
SyncPiecesFailedRequest sync_pieces_failed_request = 17;
}
}

Expand Down
9 changes: 0 additions & 9 deletions proto/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,6 @@ message DownloadPieceBackToSourceFailedRequest {
}
}

// SyncPiecesFailedRequest syncs pieces failed request of AnnouncePeerRequest.
message SyncPiecesFailedRequest {
// Parent peer id.
string parent_id = 1;
// The description of the error.
optional string description = 2;
}

// AnnouncePeerRequest represents request of AnnouncePeer.
message AnnouncePeerRequest {
// Host id.
Expand All @@ -152,7 +144,6 @@ message AnnouncePeerRequest {
DownloadPieceBackToSourceFinishedRequest download_piece_back_to_source_finished_request = 14;
DownloadPieceFailedRequest download_piece_failed_request = 15;
DownloadPieceBackToSourceFailedRequest download_piece_back_to_source_failed_request = 16;
SyncPiecesFailedRequest sync_pieces_failed_request = 17;
}
}

Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.
16 changes: 1 addition & 15 deletions src/scheduler.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,6 @@ pub mod download_piece_back_to_source_failed_request {
HttpResponse(super::HttpResponse),
}
}
/// SyncPiecesFailedRequest syncs pieces failed request of AnnouncePeerRequest.
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SyncPiecesFailedRequest {
/// Parent peer id.
#[prost(string, tag = "1")]
pub parent_id: ::prost::alloc::string::String,
/// The description of the error.
#[prost(string, optional, tag = "2")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
}
/// AnnouncePeerRequest represents request of AnnouncePeer.
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
Expand All @@ -186,7 +174,7 @@ pub struct AnnouncePeerRequest {
pub peer_id: ::prost::alloc::string::String,
#[prost(
oneof = "announce_peer_request::Request",
tags = "4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17"
tags = "4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16"
)]
pub request: ::core::option::Option<announce_peer_request::Request>,
}
Expand Down Expand Up @@ -232,8 +220,6 @@ pub mod announce_peer_request {
DownloadPieceBackToSourceFailedRequest(
super::DownloadPieceBackToSourceFailedRequest,
),
#[prost(message, tag = "17")]
SyncPiecesFailedRequest(super::SyncPiecesFailedRequest),
}
}
/// EmptyTaskResponse represents empty task response of AnnouncePeerResponse.
Expand Down
Loading