diff --git a/clientv3/yaml/config.go b/clientv3/yaml/config.go index 7539da294..4f5c0fde1 100644 --- a/clientv3/yaml/config.go +++ b/clientv3/yaml/config.go @@ -70,9 +70,6 @@ func NewConfig(fpath string) (*clientv3.Config, error) { } } - if yc.CAfile != "" && yc.TrustedCAfile == "" { - yc.TrustedCAfile = yc.CAfile - } if yc.TrustedCAfile != "" { cp, err = tlsutil.NewCertPool([]string{yc.TrustedCAfile}) if err != nil {