Skip to content

Commit

Permalink
Merge pull request #11 from Nothing4You/remove-completed-count
Browse files Browse the repository at this point in the history
Remove `completed_count` from WpQueueInfo
  • Loading branch information
windsource authored Apr 6, 2024
2 parents dd7df6e + c1d99d5 commit 9f756dc
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ pub struct WpQueueInfoStats {
pending_count: u32,
waiting_on_deps_count: u32,
running_count: u32,
completed_count: u32,
}

#[derive(Deserialize, Debug)]
Expand Down Expand Up @@ -152,8 +151,7 @@ mod tests {
"worker_count": 0,
"pending_count": 0,
"waiting_on_deps_count": 0,
"running_count": 0,
"completed_count": 0
"running_count": 0
},
"paused": false
}"#;
Expand Down Expand Up @@ -197,8 +195,7 @@ mod tests {
"worker_count": 0,
"pending_count": 2,
"waiting_on_deps_count": 0,
"running_count": 0,
"completed_count": 0
"running_count": 0
},
"paused": false
}"#;
Expand Down Expand Up @@ -248,8 +245,7 @@ mod tests {
"worker_count": 0,
"pending_count": 1,
"waiting_on_deps_count": 0,
"running_count": 1,
"completed_count": 0
"running_count": 1
},
"paused": false
}"#;
Expand Down Expand Up @@ -281,7 +277,6 @@ mod tests {
pending_count: 0,
waiting_on_deps_count: 0,
running_count: 0,
completed_count: 0,
},
};
strategy.apply(&queue_info).await;
Expand Down Expand Up @@ -318,7 +313,6 @@ mod tests {
pending_count: 1,
waiting_on_deps_count: 0,
running_count: 0,
completed_count: 0,
},
};
strategy.apply(&queue_info).await;
Expand All @@ -333,7 +327,6 @@ mod tests {
pending_count: 0,
waiting_on_deps_count: 0,
running_count: 0,
completed_count: 0,
},
};
strategy.apply(&queue_info).await;
Expand Down Expand Up @@ -370,7 +363,6 @@ mod tests {
pending_count: 1,
waiting_on_deps_count: 0,
running_count: 0,
completed_count: 0,
},
};
strategy.apply(&queue_info).await;
Expand All @@ -383,7 +375,6 @@ mod tests {
pending_count: 0,
waiting_on_deps_count: 0,
running_count: 0,
completed_count: 0,
},
};
strategy.apply(&queue_info).await;
Expand Down

0 comments on commit 9f756dc

Please sign in to comment.