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 committed Dec 10, 2024
1 parent f51955a commit 91b44b7
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 91b44b7

Please sign in to comment.