From 9bd580f2fc5aefd8d0cc5149bfb8a2e7212fd9c9 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Tue, 20 Mar 2018 15:08:54 -0700 Subject: [PATCH] tools/benchmark: use "TrustedCAFile" Signed-off-by: Gyuho Lee --- tools/benchmark/cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/benchmark/cmd/root.go b/tools/benchmark/cmd/root.go index d4b5ca9fc..cf54c8dfe 100644 --- a/tools/benchmark/cmd/root.go +++ b/tools/benchmark/cmd/root.go @@ -29,7 +29,7 @@ var RootCmd = &cobra.Command{ Use: "benchmark", Short: "A low-level benchmark tool for etcd3", Long: `benchmark is a low-level benchmark tool for etcd3. -It uses gRPC client directly and does not depend on +It uses gRPC client directly and does not depend on etcd client library. `, } @@ -65,7 +65,7 @@ func init() { RootCmd.PersistentFlags().BoolVar(&sample, "sample", false, "'true' to sample requests for every second") RootCmd.PersistentFlags().StringVar(&tls.CertFile, "cert", "", "identify HTTPS client using this SSL certificate file") RootCmd.PersistentFlags().StringVar(&tls.KeyFile, "key", "", "identify HTTPS client using this SSL key file") - RootCmd.PersistentFlags().StringVar(&tls.CAFile, "cacert", "", "verify certificates of HTTPS-enabled servers using this CA bundle") + RootCmd.PersistentFlags().StringVar(&tls.TrustedCAFile, "cacert", "", "verify certificates of HTTPS-enabled servers using this CA bundle") RootCmd.PersistentFlags().StringVar(&user, "user", "", "provide username[:password] and prompt if password is not supplied.") RootCmd.PersistentFlags().DurationVar(&dialTimeout, "dial-timeout", 0, "dial timeout for client connections")