Skip to content

Commit

Permalink
feat: remove concurrent_piece_count in scheduler (#228)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Dec 12, 2023
1 parent d333a92 commit ac0a2a4
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 66 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.61"
version = "2.0.62"
authors = ["Gaius <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
16 changes: 2 additions & 14 deletions pkg/apis/scheduler/v1/scheduler.pb.go

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

11 changes: 0 additions & 11 deletions pkg/apis/scheduler/v1/scheduler.pb.validate.go

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

2 changes: 0 additions & 2 deletions pkg/apis/scheduler/v1/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ message PeerPacket{
string task_id = 2 [(validate.rules).string.min_len = 1];
// Source peer id.
string src_pid = 3 [(validate.rules).string.min_len = 1];
// Concurrent downloading count from main peer.
int32 parallel_count = 4 [(validate.rules).int32.gte = 1];
// Main peer.
DestPeer main_peer = 5;
// Candidate peers.
Expand Down
27 changes: 7 additions & 20 deletions pkg/apis/scheduler/v2/scheduler.pb.go

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

11 changes: 0 additions & 11 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.

2 changes: 0 additions & 2 deletions pkg/apis/scheduler/v2/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ message EmptyTaskResponse {
message NormalTaskResponse {
// Candidate parents.
repeated common.v2.Peer candidate_parents = 1 [(validate.rules).repeated = {min_items: 1}];
// Concurrent downloading piece count from the peers.
uint32 concurrent_piece_count = 2 [(validate.rules).uint32.gte = 1];
}

// NeedBackToSourceResponse represents need back-to-source response of AnnouncePeerResponse.
Expand Down
2 changes: 0 additions & 2 deletions proto/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ message EmptyTaskResponse {
message NormalTaskResponse {
// Candidate parents.
repeated common.v2.Peer candidate_parents = 1;
// Concurrent downloading piece count from the peers.
uint32 concurrent_piece_count = 2;
}

// NeedBackToSourceResponse represents need back-to-source response of AnnouncePeerResponse.
Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.
3 changes: 0 additions & 3 deletions src/scheduler.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,6 @@ pub struct NormalTaskResponse {
/// Candidate parents.
#[prost(message, repeated, tag = "1")]
pub candidate_parents: ::prost::alloc::vec::Vec<super::super::common::v2::Peer>,
/// Concurrent downloading piece count from the peers.
#[prost(uint32, tag = "2")]
pub concurrent_piece_count: u32,
}
/// NeedBackToSourceResponse represents need back-to-source response of AnnouncePeerResponse.
#[derive(serde::Serialize, serde::Deserialize)]
Expand Down

0 comments on commit ac0a2a4

Please sign in to comment.