summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-18 11:37:39 +0300
committerValery Piashchynski <[email protected]>2021-07-18 11:37:39 +0300
commit978451159855c155b2aecdca3c86f47e5c6dd1ff (patch)
treea21ce19ccc4cc66d78a3460e10bbd3c64175752c /pkg
parent9c51360f9119a4114bdcc21c8e61f0908a3c876d (diff)
Remove channel from the Queue
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/worker_watcher/container/queue/queue.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/pkg/worker_watcher/container/queue/queue.go b/pkg/worker_watcher/container/queue/queue.go
index a792d7c1..4f611bbe 100644
--- a/pkg/worker_watcher/container/queue/queue.go
+++ b/pkg/worker_watcher/container/queue/queue.go
@@ -26,18 +26,15 @@ type Queue struct {
head *Node
tail *Node
- recvCh chan worker.BaseProcess
- curr uint64
- len uint64
+ curr uint64
+ len uint64
sliceSize uint64
}
func NewQueue() *Queue {
q := &Queue{
- mu: sync.Mutex{},
- // w/o buffering
- recvCh: make(chan worker.BaseProcess),
+ mu: sync.Mutex{},
head: nil,
tail: nil,
curr: 0,