summaryrefslogtreecommitdiff
path: root/process_state.go
diff options
context:
space:
mode:
Diffstat (limited to 'process_state.go')
-rw-r--r--process_state.go4
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