Skip to content

Commit

Permalink
make gometalinter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kruglov committed Aug 28, 2019
1 parent 152c435 commit 552f8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (trgt *targeter) nextRequest() (*http.Request, error) {
for key, headers := range trgt.header {
for _, header := range headers {
if key == "Host" {
req.Host = header;
req.Host = header
} else {
req.Header.Add(key, header)
}
Expand Down Expand Up @@ -292,7 +292,7 @@ func reporter(quit <-chan struct{}) {
var currentRate counter
go func() {
var lastSent int64
for _ = range time.Tick(time.Second) {
for range time.Tick(time.Second) {
curr := requestsSent.Load()
currentRate.Store(curr - lastSent)
lastSent = curr
Expand Down

0 comments on commit 552f8a3

Please sign in to comment.