renaming to ErrXyz

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

View File

@@ -66,7 +66,7 @@ func (c *OnDiskCacheLayer) getChunk(needleId types.NeedleId) (data []byte) {
for _, diskCache := range c.diskCaches {
data, err = diskCache.GetNeedle(needleId)
if err == storage.ErrorNotFound {
if err == storage.ErrNotFound {
continue
}
if err != nil {