Unverified Commit 65dcd0ce authored by Jeffrey Morgan's avatar Jeffrey Morgan Committed by GitHub
Browse files

always cleanup blob download (#747)

parent 0040f543
......@@ -314,6 +314,7 @@ func downloadBlob(ctx context.Context, opts downloadOpts) error {
requestURL := opts.mp.BaseURL()
requestURL = requestURL.JoinPath("v2", opts.mp.GetNamespaceRepository(), "blobs", opts.digest)
if err := download.Prepare(ctx, requestURL, opts.regOpts); err != nil {
blobDownloadManager.Delete(opts.digest)
return err
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment