mirror of
https://github.com/ollama/ollama.git
synced 2025-04-08 20:08:15 +02:00
always cleanup blob download (#747)
This commit is contained in:
parent
0040f543a2
commit
65dcd0ce35
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user