mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tools: simplify boolean comparison, remove unused
This commit is contained in:
parent
0c5d1d5641
commit
b8e09bf849
@ -49,9 +49,6 @@ var (
|
||||
var (
|
||||
iterateBucketName string
|
||||
iterateBucketLimit uint64
|
||||
|
||||
revertCopyPath string
|
||||
revertRevision int64
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -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")
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,6 @@ type keyStresser struct {
|
||||
|
||||
rateLimiter *rate.Limiter
|
||||
|
||||
mu sync.Mutex
|
||||
wg sync.WaitGroup
|
||||
|
||||
cancel func()
|
||||
|
@ -41,7 +41,6 @@ type v2Stresser struct {
|
||||
|
||||
wg sync.WaitGroup
|
||||
|
||||
mu sync.Mutex
|
||||
atomicModifiedKey int64
|
||||
|
||||
cancel func()
|
||||
|
Loading…
x
Reference in New Issue
Block a user