From 209102655bb37c5ab17de0f7d29c4f417dfe7a18 Mon Sep 17 00:00:00 2001 From: zhangbitao Date: Thu, 2 Apr 2020 10:04:35 +0800 Subject: [PATCH] etcdmain: fix typo --- etcdmain/gateway.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etcdmain/gateway.go b/etcdmain/gateway.go index fece05f1c..a990a4599 100644 --- a/etcdmain/gateway.go +++ b/etcdmain/gateway.go @@ -33,7 +33,7 @@ var ( gatewayDNSCluster string gatewayDNSClusterServiceName string gatewayInsecureDiscovery bool - getewayRetryDelay time.Duration + gatewayRetryDelay time.Duration gatewayCA string ) @@ -75,7 +75,7 @@ func newGatewayStartCommand() *cobra.Command { cmd.Flags().StringSliceVar(&gatewayEndpoints, "endpoints", []string{"127.0.0.1:2379"}, "comma separated etcd cluster endpoints") - cmd.Flags().DurationVar(&getewayRetryDelay, "retry-delay", time.Minute, "duration of delay before retrying failed endpoints") + cmd.Flags().DurationVar(&gatewayRetryDelay, "retry-delay", time.Minute, "duration of delay before retrying failed endpoints") return &cmd } @@ -135,7 +135,7 @@ func startGateway(cmd *cobra.Command, args []string) { Logger: lg, Listener: l, Endpoints: srvs.SRVs, - MonitorInterval: getewayRetryDelay, + MonitorInterval: gatewayRetryDelay, } // At this point, etcd gateway listener is initialized