From 112e12d7ee8f319cc298973363acd1a7cfc2aa3f Mon Sep 17 00:00:00 2001 From: PJ Date: Tue, 12 Nov 2024 18:37:48 +0100 Subject: [PATCH] cache: remove double invalidate --- internal/worker/cache.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/worker/cache.go b/internal/worker/cache.go index 436e5bb21..d6b3f9eaf 100644 --- a/internal/worker/cache.go +++ b/internal/worker/cache.go @@ -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)