Merge pull request #280 from jiyeyuran/master

Allow client_retries to be 0
This commit is contained in:
Asim Aslam 2018-07-19 23:24:57 -07:00 committed by GitHub
commit cfa824bc5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,7 +384,7 @@ func (c *cmd) Before(ctx *cli.Context) error {
} }
// client opts // client opts
if r := ctx.Int("client_retries"); r > 0 { if r := ctx.Int("client_retries"); r >= 0 {
clientOpts = append(clientOpts, client.Retries(r)) clientOpts = append(clientOpts, client.Retries(r))
} }