as many workers are their are channel

This commit is contained in:
Joseph Lawson
2014-04-23 14:02:33 -04:00
parent c49c19428d
commit dbfea7ceac
+2 -1
View File
@@ -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)
}