summaryrefslogtreecommitdiff
path: root/pkg/worker_watcher/container/vec.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-13 16:42:36 +0300
committerValery Piashchynski <[email protected]>2021-06-13 16:42:36 +0300
commit9fd01b07ecae6e68dd0ed8be6be5f8c0228771cb (patch)
treeb170b08ec0460b1dd815875236bf1890af9f7939 /pkg/worker_watcher/container/vec.go
parent54c3553cc39df4eae92d1f2c8c428e625f32f41a (diff)
- Optimize sync_worker payload exec
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/worker_watcher/container/vec.go')
-rw-r--r--pkg/worker_watcher/container/vec.go4
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() {