Revert "Revert "feat: enable retry for zrpc (#1237)"" (#1246)

This commit is contained in:
Kevin Wan
2021-11-16 10:29:31 +08:00
committed by GitHub
parent 67db40ed4f
commit 2d4c29ea7c
4 changed files with 26 additions and 32 deletions

View File

@@ -18,8 +18,7 @@ type (
// setting 0 means no timeout
Timeout int64 `json:",default=2000"`
CpuThreshold int64 `json:",default=900,range=[0:1000]"`
// TODO: enable it in v1.2.4
// MaxRetries int `json:",default=0,range=[0:]"`
MaxRetries int `json:",default=0,range=[0:]"`
}
// A RpcClientConf is a rpc client config.
@@ -30,9 +29,8 @@ type (
App string `json:",optional"`
Token string `json:",optional"`
NonBlock bool `json:",optional"`
// TODO: enable it in v1.2.4
// Retry bool `json:",optional"` // grpc auto retry
Timeout int64 `json:",default=2000"`
Retry bool `json:",optional"` // grpc auto retry
Timeout int64 `json:",default=2000"`
}
)