Skip to content

armgit / hey

Public Imported from GitHub
0

HTTP load generator, ApacheBench (ab) replacement

Go

Remove dead code

Mehmet Akin86fdf9e2b2d3
diff --git a/commands/boom.go b/commands/boom.go
index 014ad0c..9436f67 100644
--- a/commands/boom.go
+++ b/commands/boom.go
@@ -45,7 +45,6 @@ type Boom struct {
end time.Time
results chan *result
bar *pb.ProgressBar
- timeout <-chan time.Time
timedOut bool
report Report
}
diff --git a/commands/run.go b/commands/run.go
index 0a9898b..2edbb5c 100644
--- a/commands/run.go
+++ b/commands/run.go
@@ -68,8 +68,8 @@ WORKER_LOOP:
err: err,
}
b.bar.Increment()
- case <-b.timeout:
- b.timedOut = true
+ case <-timeout:
+ timedOut = true
}
}
}