feat(sync): address review comments

Signed-off-by: Vishwas Rajashekar <dev@vrajashkr.com>
This commit is contained in:
Vishwas Rajashekar
2026-05-20 23:15:01 +05:30
parent 09e674f369
commit 38f0e498ab
5 changed files with 28 additions and 31 deletions
+6
View File
@@ -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