Skip to content

Commit

Permalink
cache: remove double invalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Nov 12, 2024
1 parent b03ec5f commit 112e12d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/worker/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ func (c *cache) HandleEvent(event webhooks.Event) (err error) {
case api.EventConsensusUpdate:
log = log.With("bh", e.BlockHeight, "ts", e.Timestamp)
c.handleConsensusUpdate(e)
c.cache.Invalidate(cacheKeyUsableHosts)
case api.EventSettingUpdate:
log = log.With("gouging", e.GougingSettings != nil, "pinned", e.PinnedSettings != nil, "upload", e.UploadSettings != nil, "ts", e.Timestamp)
c.handleSettingUpdate(e)
Expand Down

0 comments on commit 112e12d

Please sign in to comment.