summaryrefslogtreecommitdiff
path: root/pkg/worker_watcher/stack.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-24 01:24:50 +0300
committerValery Piashchynski <[email protected]>2021-01-24 01:24:50 +0300
commit00f94201218079cf2ba3ebbddc9095c0ac4804ae (patch)
tree91fb62dd0c3a78dff2eaf1d0586397a0031682d5 /pkg/worker_watcher/stack.go
parente5a93ee2a305c87ab128dfd166e735c6eeb77e43 (diff)
Update Pool and WorkerWatcher interfaces
Diffstat (limited to 'pkg/worker_watcher/stack.go')
-rw-r--r--pkg/worker_watcher/stack.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/worker_watcher/stack.go b/pkg/worker_watcher/stack.go
index 2d23d0e9..d76f4d8f 100644
--- a/pkg/worker_watcher/stack.go
+++ b/pkg/worker_watcher/stack.go
@@ -85,10 +85,10 @@ func (stack *Stack) FindAndRemoveByPid(pid int64) bool {
}
// Workers return copy of the workers in the stack
-func (stack *Stack) Workers() []*worker.SyncWorkerImpl {
+func (stack *Stack) Workers() []worker.SyncWorker {
stack.mutex.Lock()
defer stack.mutex.Unlock()
- workersCopy := make([]*worker.SyncWorkerImpl, 0, 1)
+ workersCopy := make([]worker.SyncWorker, 0, 1)
// copy
for _, v := range stack.workers {
if v != nil {