increase gomaxprocs

This commit is contained in:
Andre Medeiros 2021-07-08 21:28:43 -04:00
parent 26a034a68b
commit 83fb4cdcc7

View file

@ -128,6 +128,8 @@ func main() {
numConsumers := runtime.NumCPU() * 12
prefetchLimit := int64(numConsumers * 2)
runtime.GOMAXPROCS(numConsumers / 4)
if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil {
panic(err)
}