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

This reverts commit 09eb53f308.
This commit is contained in:
Kevin Wan
2021-11-15 23:30:31 +08:00
committed by GitHub
parent 11c485a5ed
commit 67db40ed4f
4 changed files with 32 additions and 26 deletions

View File

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