1
0
mirror of https://github.com/nxshock/gwp.git synced 2024-11-27 03:31:02 +05:00

Fix comment

This commit is contained in:
nxshock 2022-06-24 21:05:30 +05:00 committed by GitHub
parent 928cd97576
commit 54dac42925
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
gwp.go
View File

@ -25,7 +25,7 @@ type WorkerPool struct {
}
// New creates new pool of workers with specified goroutine count.
// If specified number of workers less than 1, runtume.NumCPU() is used.
// If specified number of workers less than 1, runtime.NumCPU() is used.
func New(threadCount int) *WorkerPool {
if threadCount <= 0 {
threadCount = runtime.NumCPU()