增加内存缓存队列长度,确保不会产生不在队列里的缓存对象

This commit is contained in:
刘祥超
2023-10-02 15:20:19 +08:00
parent ae1454f9bb
commit bb50ecd682
3 changed files with 22 additions and 13 deletions

View File

@@ -436,7 +436,7 @@ func (this *FileStorage) openWriter(key string, expiredAt int64, status int, hea
}
// 如果队列满了,则等待
if err == ErrWritingQueueFull {
if errors.Is(err, ErrWritingQueueFull) {
return nil, err
}
}