feat: rpc add health check function configuration optional (#2288)

* feat: rpc add health check function configuration optional

* update config field name
This commit is contained in:
MarkJoyMa
2022-08-23 13:44:21 +08:00
committed by GitHub
parent 1c85d39add
commit 040c9e0954
4 changed files with 23 additions and 4 deletions

View File

@@ -19,6 +19,8 @@ type (
// setting 0 means no timeout
Timeout int64 `json:",default=2000"`
CpuThreshold int64 `json:",default=900,range=[0:1000]"`
// grpc health check switch
Health bool `json:",default=true"`
}
// A RpcClientConf is a rpc client config.