Skip to content

Commit

Permalink
Merge pull request #10 from stefanwimmer128/fix-running-count
Browse files Browse the repository at this point in the history
Fix running count
  • Loading branch information
windsource authored Nov 12, 2023
2 parents 3ffd43d + 3f02de6 commit 0b6009e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub struct WpQueueInfoPending {
#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct WpQueueInfoRunning {
id: String,
agent_id: u32,
labels: Labels,
}

Expand Down Expand Up @@ -84,7 +84,7 @@ impl Strategy {
if let Some(running) = &queue_info.running {
running_count = running
.iter()
.filter(|r| r.id == self.agent_id)
.filter(|r| r.agent_id.to_string() == self.agent_id)
.collect::<Vec<_>>()
.len();
}
Expand Down

0 comments on commit 0b6009e

Please sign in to comment.