mirror of
https://github.com/ollama/ollama.git
synced 2025-06-06 11:49:34 +02:00
retry PUT
This commit is contained in:
parent
12efcbb057
commit
186f685224
@ -175,7 +175,7 @@ func (b *blobUpload) Run(ctx context.Context, opts *RegistryOptions) {
|
|||||||
headers.Set("Content-Type", "application/octet-stream")
|
headers.Set("Content-Type", "application/octet-stream")
|
||||||
headers.Set("Content-Length", "0")
|
headers.Set("Content-Length", "0")
|
||||||
|
|
||||||
resp, err := makeRequest(ctx, "PUT", requestURL, headers, nil, opts)
|
resp, err := makeRequestWithRetry(ctx, "PUT", requestURL, headers, nil, opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.err = err
|
b.err = err
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user