Merge pull request #10145 from ae6rt/issue/10142

benchmark: util.go
release-3.4
Xiang Li 2018-10-02 10:45:15 -07:00 committed by GitHub
commit b8969dea0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ func mustCreateConn() *clientv3.Client {
Endpoints: connEndpoints,
DialTimeout: dialTimeout,
}
if !tls.Empty() {
if !tls.Empty() || tls.TrustedCAFile != "" {
cfgtls, err := tls.ClientConfig()
if err != nil {
fmt.Fprintf(os.Stderr, "bad tls config: %v\n", err)