We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2cc69 commit 04d84d9Copy full SHA for 04d84d9
worker/pool.go
@@ -125,7 +125,7 @@ func (workerPoolSelf *DefaultWorkerPool) trySpawn() {
125
// Avoid Jam if (now - lastAliveTime) is over workerJamDuration
126
if time.Now().Sub(workerPoolSelf.lastAliveTime) > workerPoolSelf.workerJamDuration &&
127
workerPoolSelf.workerCount >= expectedWorkerCount {
128
- expectedWorkerCount++
+ expectedWorkerCount = workerPoolSelf.workerCount + 1
129
}
130
workerPoolSelf.lock.RUnlock()
131
0 commit comments