tq: retry requests a given number of times
This commit is contained in:
parent
a3c65a0bcc
commit
ad67ed6b86
@ -58,7 +58,7 @@ func (c *tqClient) Batch(remote string, bReq *batchRequest) (*BatchResponse, err
|
||||
tracerx.Printf("api: batch %d files", len(bReq.Objects))
|
||||
|
||||
req = c.LogRequest(req, "lfs.batch")
|
||||
res, err := c.DoWithAuth(remote, req)
|
||||
res, err := c.DoWithAuth(remote, lfsapi.WithRetries(req, c.MaxRetries))
|
||||
if err != nil {
|
||||
tracerx.Printf("api error: %s", err)
|
||||
return nil, errors.Wrap(err, "batch response")
|
||||
|
Loading…
Reference in New Issue
Block a user