renaming to ErrXyz

This commit is contained in:
bingoohuang committed 2021-02-19 15:59:55 +08:00
1 parent 352ac2f271
commit 7ffe736d20
7 files changed
+18 -16

No files matched your search

+1 -1
View File
@@ -104,7 +104,7 @@ func (v *ChunkCacheVolume) GetNeedle(key types.NeedleId) ([]byte, error) {
nv, ok := v.nm.Get(key)
if !ok {
return nil, storage.ErrorNotFound
return nil, storage.ErrNotFound
}
data := make([]byte, nv.Size)
if readSize, readErr := v.DataBackend.ReadAt(data, nv.Offset.ToActualOffset()); readErr != nil {