mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
as many workers are their are channel
This commit is contained in:
+2
-1
@@ -11,6 +11,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
type RedirectNotAllowed struct{}
|
||||
@@ -76,7 +77,7 @@ func NewHTTPOutput(options string, headers HTTPHeaders, methods HTTPMethods, ela
|
||||
o.limit, _ = strconv.Atoi(optionsArr[1])
|
||||
}
|
||||
|
||||
for i := 0; i < 100; i++ {
|
||||
for i := 0; i < runtime.NumCPU(); i++ {
|
||||
go o.worker(i)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user