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:
Piotr Tabor
2021-02-21 23:44:21 +01:00
parent 8d1a8ce044
commit 4a1c24556c
11 changed files with 216 additions and 73 deletions

View File

@@ -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