优化代码

This commit is contained in:
GoEdgeLab
2023-03-12 16:36:59 +08:00
parent 6bd91cff24
commit db3da87251

View File

@@ -508,7 +508,11 @@ func (this *MemoryStorage) flushItem(key string) {
if !ok { if !ok {
return return
} }
if !item.IsDone || item.IsExpired() { if !item.IsDone {
remotelogs.Error("CACHE", "flush items failed: open writer failed: item has not been done")
return
}
if item.IsExpired() {
return return
} }