diff options
author | Valery Piashchynski <[email protected]> | 2020-10-14 15:23:22 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-10-14 15:23:22 +0300 |
commit | a407be25f068a5c0a20a4cf96ddfaf4ccd3af739 (patch) | |
tree | 143e1ca6729d28b1d50e151a8d8050ac67e6f5ec /process_state.go | |
parent | b5f429667131ef91498d67d08242b9f46cc23d6d (diff) |
Fixed: race conditions in tests, Handle_Dead test activated
Diffstat (limited to 'process_state.go')
-rw-r--r-- | process_state.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/process_state.go b/process_state.go index 747fa8a8..1a4c4d65 100644 --- a/process_state.go +++ b/process_state.go @@ -1,8 +1,6 @@ package roadrunner import ( - "context" - "github.com/shirou/gopsutil/process" ) @@ -45,7 +43,7 @@ func WorkerProcessState(w WorkerBase) (ProcessState, error) { // ServerState returns list of all worker states of a given rr server. func PoolState(pool Pool) ([]ProcessState, error) { result := make([]ProcessState, 0) - for _, w := range pool.Workers(context.TODO()) { + for _, w := range pool.Workers() { state, err := WorkerProcessState(w) if err != nil { return nil, err |