Skip to content

Commit

Permalink
fix: update cache on updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe authored and moshloop committed Dec 10, 2024
1 parent 92c2e16 commit 77a06ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ func saveResults(ctx api.ScrapeContext, results []v1.ScrapeResult) (v1.ScrapeSum

if updated {
summary.AddUpdated(updateArg.Existing.Type)
ctx.TempCache().Insert(*updateArg.New)
} else {
summary.AddUnchanged(updateArg.Existing.Type)
nonUpdatedConfigs = append(nonUpdatedConfigs, updateArg.Existing.ID)
Expand Down

0 comments on commit 77a06ba

Please sign in to comment.