1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-23 17:53:05 +02:00

client_retries can be 0

This commit is contained in:
武新飞 2018-07-20 14:20:23 +08:00
parent ac2106ced7
commit 39be61685c

View File

@ -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))
}