diff options
author | Valery Piashchynski <[email protected]> | 2021-07-12 09:11:19 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-12 09:11:19 +0300 |
commit | 87971c4d310fe3d353197fc96b9b6f9106f01e57 (patch) | |
tree | 2d57a92fc850de2928e48d969e49f21eb0993dcc | |
parent | b924032fffc761a6d88264133745d783f0a58191 (diff) |
Typo in the pool configuration.
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r-- | plugins/jobs/plugin.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/jobs/plugin.go b/plugins/jobs/plugin.go index 150c1d48..aab23f1c 100644 --- a/plugins/jobs/plugin.go +++ b/plugins/jobs/plugin.go @@ -279,14 +279,7 @@ func (p *Plugin) Reset() error { p.workersPool = nil var err error - p.workersPool, err = p.server.NewWorkerPool(context.Background(), &pool.Config{ - Debug: p.cfg.Pool.Debug, - NumWorkers: p.cfg.Pool.NumWorkers, - MaxJobs: p.cfg.Pool.MaxJobs, - AllocateTimeout: p.cfg.Pool.AllocateTimeout, - DestroyTimeout: p.cfg.Pool.DestroyTimeout, - Supervisor: p.cfg.Pool.Supervisor, - }, map[string]string{RrJobs: "true"}) + p.workersPool, err = p.server.NewWorkerPool(context.Background(), p.cfg.Pool, map[string]string{RrJobs: "true"}) if err != nil { return errors.E(op, err) } |