Skip to content

Commit

Permalink
contractor: fix contract addition alert for renewals
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Jul 30, 2024
1 parent c634fd9 commit f6d93a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopilot/contractor/contractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ func computeContractSetChanged(ctx *mCtx, alerter alerts.Alerter, bus Bus, churn
}
for _, contract := range newSet {
_, existed := inOldSet[contract.ID]
_, renewed := renewalsToFrom[contract.ID]
_, renewed := inOldSet[renewalsToFrom[contract.ID]]
if !existed && !renewed {
if _, exists := setAdditions[contract.ID]; !exists {
setAdditions[contract.ID] = contractSetAdditions{
Expand Down

0 comments on commit f6d93a2

Please sign in to comment.