mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3: PS: Replace balancer with upstream grpc solution
Addresses comments from: https://github.com/etcd-io/etcd/pull/12671#pullrequestreview-593942302
This commit is contained in:
@@ -56,6 +56,9 @@ func checkHealth(c *clientv3.Client) etcdhttp.Health {
|
||||
}
|
||||
|
||||
func checkProxyHealth(c *clientv3.Client) etcdhttp.Health {
|
||||
if c == nil {
|
||||
return etcdhttp.Health{Health: "false", Reason: "no connection to proxy"}
|
||||
}
|
||||
h := checkHealth(c)
|
||||
if h.Health != "true" {
|
||||
return h
|
||||
|
||||
Reference in New Issue
Block a user