mirror of
https://github.com/project-zot/zot.git
synced 2026-06-18 05:28:07 +08:00
feat(sync): address review comments
Signed-off-by: Vishwas Rajashekar <dev@vrajashkr.com>
This commit is contained in:
@@ -1176,6 +1176,12 @@ func (rh *RouteHandler) getBlobInfoFromStreamCache(digest string, response http.
|
||||
// when streaming is enabled, the blob might exist in the stream cache
|
||||
blobSize, blobMediaType, err := streamMgr.CachedBlobInfo(digest)
|
||||
if err != nil {
|
||||
if errors.Is(err, zerr.ErrBlobNotFound) {
|
||||
rh.c.Log.Debug().Str("digest", digest).Msg("blob not found in stream cache")
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
rh.c.Log.Error().Err(err).Str("digest", digest).Msg("failed to check stream cache for blob existence")
|
||||
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user