Skip to content

Commit

Permalink
Switches var assignment to := for concurrency and delay
Browse files Browse the repository at this point in the history
  • Loading branch information
tomnomnom committed Dec 30, 2017
1 parent fffe252 commit 7e3452e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ func (h headerArgs) String() string {
func main() {

// concurrency param
var concurrency = 20
concurrency := 20
flag.IntVar(&concurrency, "concurrency", 20, "")
flag.IntVar(&concurrency, "c", 20, "")

// delay param
var delay = 20
delay := 5000
flag.IntVar(&delay, "delay", 5000, "")
flag.IntVar(&delay, "d", 5000, "")

Expand Down

0 comments on commit 7e3452e

Please sign in to comment.