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:
@@ -208,7 +208,13 @@ func startGRPCProxy(cmd *cobra.Command, args []string) {
|
||||
}()
|
||||
|
||||
client := mustNewClient(lg)
|
||||
proxyClient := mustNewProxyClient(lg, tlsinfo)
|
||||
|
||||
// The proxy client is used for self-healthchecking.
|
||||
// TODO: The mechanism should be refactored to use internal connection.
|
||||
var proxyClient *clientv3.Client
|
||||
if grpcProxyAdvertiseClientURL != "" {
|
||||
proxyClient = mustNewProxyClient(lg, tlsinfo)
|
||||
}
|
||||
httpClient := mustNewHTTPClient(lg)
|
||||
|
||||
srvhttp, httpl := mustHTTPListener(lg, m, tlsinfo, client, proxyClient)
|
||||
|
||||
Reference in New Issue
Block a user