Skip to content

Commit

Permalink
Fix running_count
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanwimmer128 committed Nov 12, 2023
1 parent 3ffd43d commit 3f02de6
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 3f02de6

Please sign in to comment.