修复部分语法问题

This commit is contained in:
dragon
2025-11-11 10:27:05 +08:00
parent aa5d6b0f10
commit af66879f28
2 changed files with 6 additions and 6 deletions

View File

@@ -114,8 +114,8 @@ func (c *CacheBackendBlobReader) Open(ctx context.Context, owner, repo, commit,
return nil, err
}
if open.StatusCode == http.StatusNotFound {
// 缓存 404 路由
_ = c.cache.Put(ctx, key, nil, time.Hour)
// TODO: 缓存 404 路由
//_ = c.cache.Put(ctx, key, nil, time.Hour)
_ = open.Body.Close()
return nil, os.ErrNotExist
}