From fba3d927b62f8963f0c291da2739061e726df32e Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 9 Aug 2021 17:10:07 +0300 Subject: Update goridge to v3.2.0, update all frames operations. Signed-off-by: Valery Piashchynski --- pkg/pool/static_pool.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/pool/static_pool.go') diff --git a/pkg/pool/static_pool.go b/pkg/pool/static_pool.go index 1cd0a8fa..051e7a8a 100755 --- a/pkg/pool/static_pool.go +++ b/pkg/pool/static_pool.go @@ -253,6 +253,7 @@ func defaultErrEncoder(sp *StaticPool) ErrorEncoder { case errors.Is(errors.SoftJob, err): if sp.cfg.MaxJobs != 0 && w.State().NumExecs() >= sp.cfg.MaxJobs { + // TODO suspicious logic, redesign err = sp.ww.Allocate() if err != nil { sp.events.Push(events.PoolEvent{Event: events.EventWorkerConstruct, Payload: errors.E(op, err)}) -- cgit v1.2.3