summaryrefslogtreecommitdiff
path: root/pool
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-10-30 13:33:06 -0700
committerGitHub <[email protected]>2021-10-30 13:33:06 -0700
commitb78558d0af7f813f81de0338400f99291932347f (patch)
treee71fcd3ed2d8bbc1bb4542290a11d5cb9730a4b1 /pool
parentc8c3f9f113eae13aa37cf92043b288bb0c68a622 (diff)
parent1cac0d3efd40e8950004c8d953fb5d1f2d53197b (diff)
[#839]: refactoring(eventsbus): add docs, udpate testsv2.6.0-alpha.2
[#839]: refactoring(eventsbus): add docs, udpate tests
Diffstat (limited to 'pool')
-rwxr-xr-xpool/static_pool.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/pool/static_pool.go b/pool/static_pool.go
index 11112e72..a5c98eaa 100755
--- a/pool/static_pool.go
+++ b/pool/static_pool.go
@@ -200,7 +200,6 @@ func (sp *StaticPool) stopWorker(w worker.BaseProcess) {
}
// checkMaxJobs check for worker number of executions and kill workers if that number more than sp.cfg.MaxJobs
-//go:inline
func (sp *StaticPool) checkMaxJobs(w worker.BaseProcess) {
if w.State().NumExecs() >= sp.cfg.MaxJobs {
w.State().Set(worker.StateMaxJobsReached)