Explorar o código

Merge pull request #7054 from gyuho/err

etcd-tester: remove unused err var from maxRev
Gyu-Ho Lee %!s(int64=9) %!d(string=hai) anos
pai
achega
c00084812c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/functional-tester/etcd-tester/failure.go

+ 1 - 1
tools/functional-tester/etcd-tester/failure.go

@@ -152,7 +152,7 @@ func (f *failureUntilSnapshot) Inject(c *cluster, round int) error {
 	// Give it 3-times time to create a new snapshot.
 	retry := snapshotCount / 1000 * 3
 	for j := 0; j < retry; j++ {
-		lastRev, err = c.maxRev()
+		lastRev, _ = c.maxRev()
 		// If the number of proposals committed is bigger than snapshot count,
 		// a new snapshot should have been created.
 		if lastRev-startRev > snapshotCount {