diff options
author | Valery Piashchynski <[email protected]> | 2021-06-13 16:42:36 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-13 16:42:36 +0300 |
commit | 9fd01b07ecae6e68dd0ed8be6be5f8c0228771cb (patch) | |
tree | b170b08ec0460b1dd815875236bf1890af9f7939 /pkg/worker_watcher | |
parent | 54c3553cc39df4eae92d1f2c8c428e625f32f41a (diff) |
- Optimize sync_worker payload exec
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/worker_watcher')
-rw-r--r-- | pkg/worker_watcher/container/vec.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/worker_watcher/container/vec.go b/pkg/worker_watcher/container/vec.go index 239b01c7..565b1b69 100644 --- a/pkg/worker_watcher/container/vec.go +++ b/pkg/worker_watcher/container/vec.go @@ -35,9 +35,7 @@ func (v *Vec) Dequeue() (worker.BaseProcess, bool) { return nil, true } - w := <-v.workers - - return w, false + return <-v.workers, false } func (v *Vec) Destroy() { |