Browse Source

tools: simplify boolean comparison, remove unused

Gyu-Ho Lee 9 years ago
parent
commit
b8e09bf849

+ 0 - 3
tools/etcd-dump-db/main.go

@@ -49,9 +49,6 @@ var (
 var (
 	iterateBucketName  string
 	iterateBucketLimit uint64
-
-	revertCopyPath string
-	revertRevision int64
 )
 
 func init() {

+ 1 - 1
tools/functional-tester/etcd-agent/main.go

@@ -44,7 +44,7 @@ func main() {
 		fmt.Println("got --use-root=true but not root user")
 		os.Exit(1)
 	}
-	if *useRoot == false {
+	if !*useRoot {
 		fmt.Println("root permissions disabled, agent will not modify network")
 	}
 

+ 0 - 1
tools/functional-tester/etcd-tester/key_stresser.go

@@ -42,7 +42,6 @@ type keyStresser struct {
 
 	rateLimiter *rate.Limiter
 
-	mu sync.Mutex
 	wg sync.WaitGroup
 
 	cancel func()

+ 0 - 1
tools/functional-tester/etcd-tester/v2_stresser.go

@@ -41,7 +41,6 @@ type v2Stresser struct {
 
 	wg sync.WaitGroup
 
-	mu                sync.Mutex
 	atomicModifiedKey int64
 
 	cancel func()