feat: disable grpc retry, enable it in v1.2.4 (#1233)

This commit is contained in:
Kevin Wan
2021-11-13 15:38:43 +08:00
committed by GitHub
parent fa0c364982
commit 57d2f22c24
4 changed files with 32 additions and 23 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"`
}
)