From 34f81e3f5abcf80b26a75f4a677e36f3eec34de6 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sat, 12 Mar 2022 19:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/caches/storage_memory.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/caches/storage_memory.go b/internal/caches/storage_memory.go index 6ba0563..f322d6c 100644 --- a/internal/caches/storage_memory.go +++ b/internal/caches/storage_memory.go @@ -41,7 +41,8 @@ type MemoryStorage struct { locker *sync.RWMutex valuesMap map[uint64]*MemoryItem // hash => item - dirtyChan chan string // hash chan + + dirtyChan chan string // hash chan purgeTicker *utils.Ticker @@ -434,6 +435,7 @@ func (this *MemoryStorage) flushItem(key string) { if err != nil { _ = writer.Discard() remotelogs.Error("CACHE", "flush items failed: close writer failed: "+err.Error()) + return } this.parentStorage.AddToList(&Item{