mirror of
https://github.com/ollama/ollama.git
synced 2025-03-26 17:51:48 +01: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-Length", "0")
|
||||
|
||||
resp, err := makeRequest(ctx, "PUT", requestURL, headers, nil, opts)
|
||||
resp, err := makeRequestWithRetry(ctx, "PUT", requestURL, headers, nil, opts)
|
||||
if err != nil {
|
||||
b.err = err
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user