tq: retry requests a given number of times

This commit is contained in:
Taylor Blau 2017-08-24 17:52:07 -04:00
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")