diff --git a/etcdctl/ctlv2/command/backup_command.go b/etcdctl/ctlv2/command/backup_command.go index 0a8714cd2..6a9ecc690 100644 --- a/etcdctl/ctlv2/command/backup_command.go +++ b/etcdctl/ctlv2/command/backup_command.go @@ -189,11 +189,11 @@ func saveDB(destDB, srcDB string, idx uint64, v3 bool) { var src *bolt.DB ch := make(chan *bolt.DB, 1) go func() { - src, err := bolt.Open(srcDB, 0444, &bolt.Options{ReadOnly: true}) + db, err := bolt.Open(srcDB, 0444, &bolt.Options{ReadOnly: true}) if err != nil { log.Fatal(err) } - ch <- src + ch <- db }() select { case src = <-ch: diff --git a/tools/functional-tester/etcd-runner/command/global.go b/tools/functional-tester/etcd-runner/command/global.go index 02ae92dc2..968dd567e 100644 --- a/tools/functional-tester/etcd-runner/command/global.go +++ b/tools/functional-tester/etcd-runner/command/global.go @@ -106,9 +106,9 @@ func doRounds(rcs []roundClient, rounds int, requests int) { } func endpointsFromFlag(cmd *cobra.Command) []string { - endpoints, err := cmd.Flags().GetStringSlice("endpoints") + eps, err := cmd.Flags().GetStringSlice("endpoints") if err != nil { ExitWithError(ExitError, err) } - return endpoints + return eps }