From 39be61685c7f1672b5466aa9f95804728028816e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E6=96=B0=E9=A3=9E?= Date: Fri, 20 Jul 2018 14:20:23 +0800 Subject: [PATCH] client_retries can be 0 --- cmd/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index c6086d39..c1173cc4 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -384,7 +384,7 @@ func (c *cmd) Before(ctx *cli.Context) error { } // client opts - if r := ctx.Int("client_retries"); r > 0 { + if r := ctx.Int("client_retries"); r >= 0 { clientOpts = append(clientOpts, client.Retries(r)) }