From 9aae9e2009bad07ebdee73e1c6cf56901d07880a Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 26 Oct 2020 11:50:12 +0300 Subject: Fix linters warnings --- worker_watcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'worker_watcher.go') diff --git a/worker_watcher.go b/worker_watcher.go index 773f7745..25c88a1a 100755 --- a/worker_watcher.go +++ b/worker_watcher.go @@ -3,9 +3,10 @@ package roadrunner import ( "context" "errors" - "github.com/spiral/roadrunner/v2/util" "sync" "time" + + "github.com/spiral/roadrunner/v2/util" ) var ErrWatcherStopped = errors.New("watcher stopped") @@ -282,7 +283,6 @@ func (ww *workerWatcher) wait(ctx context.Context, w WorkerBase) { for i := 0; i < len(ww.stack.workers); i++ { // worker in the stack, reallocating if ww.stack.workers[i].Pid() == pid { - ww.stack.workers = append(ww.stack.workers[:i], ww.stack.workers[i+1:]...) ww.decreaseNumOfActualWorkers() ww.stack.mutex.Unlock() -- cgit v1.2.3