1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-07-12 22:41:07 +02:00

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

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