summaryrefslogtreecommitdiff
path: root/pool
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-10-30 14:56:35 +0300
committerValery Piashchynski <[email protected]>2021-10-30 14:56:35 +0300
commit875f0060501fa3f32b21c1670aeb5efe15a37e24 (patch)
treeaf01ea1a12f071250b97f64f31f1cc98378d40ce /pool
parentc8c3f9f113eae13aa37cf92043b288bb0c68a622 (diff)
Add docs, update tests
Signed-off-by: Valery Piashchynski <[email protected]>
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)