etcdmain: fix typo

release-3.5
zhangbitao 2020-04-02 10:04:35 +08:00
parent 0941cfc11d
commit 209102655b
1 changed files with 3 additions and 3 deletions

View File

@ -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