From fd1e98bc6339abfa66523bf9d2208d00df8ee4bc Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 22 Dec 2020 23:02:25 +0300 Subject: events listeners refactor, CLI initial commit --- pkg/worker_watcher/worker_watcher.go | 1 - 1 file changed, 1 deletion(-) (limited to 'pkg/worker_watcher/worker_watcher.go') diff --git a/pkg/worker_watcher/worker_watcher.go b/pkg/worker_watcher/worker_watcher.go index 918145e5..55191ce6 100755 --- a/pkg/worker_watcher/worker_watcher.go +++ b/pkg/worker_watcher/worker_watcher.go @@ -163,7 +163,6 @@ type workerWatcher struct { func (ww *workerWatcher) AddToWatch(workers []worker.BaseProcess) error { for i := 0; i < len(workers); i++ { ww.stack.Push(workers[i]) - workers[i].AddListener(ww.events.Push) go func(swc worker.BaseProcess) { ww.wait(swc) -- cgit v1.2.3