diff options
author | Valery Piashchynski <[email protected]> | 2020-10-26 11:50:12 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-10-26 11:50:12 +0300 |
commit | 9aae9e2009bad07ebdee73e1c6cf56901d07880a (patch) | |
tree | 0ad9537bd438c63719fb83343ab77fc4ab34eb83 /worker_watcher.go | |
parent | db7695463e85faf3fba6a2767b2dfa6ef916785d (diff) |
Fix linters warnings
Diffstat (limited to 'worker_watcher.go')
-rwxr-xr-x | worker_watcher.go | 4 |
1 files changed, 2 insertions, 2 deletions
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() |