summaryrefslogtreecommitdiff
path: root/pkg/worker
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-17 10:19:01 +0300
committerValery Piashchynski <[email protected]>2020-12-17 10:19:01 +0300
commitacb53196f8ff4518c515225b39c6fb2bac64faae (patch)
tree3c016e03132a38ec3dd3fce737120a0fdc9642c9 /pkg/worker
parent8422e300f64f20d86ffccf773d41109285bbc12d (diff)
Update events handler, add mutex to push
Diffstat (limited to 'pkg/worker')
-rwxr-xr-xpkg/worker/worker.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkg/worker/worker.go b/pkg/worker/worker.go
index 998ed592..35d3264e 100755
--- a/pkg/worker/worker.go
+++ b/pkg/worker/worker.go
@@ -13,12 +13,11 @@ import (
"time"
"github.com/spiral/errors"
+ "github.com/spiral/goridge/v3"
"github.com/spiral/roadrunner/v2/interfaces/events"
"github.com/spiral/roadrunner/v2/interfaces/worker"
"github.com/spiral/roadrunner/v2/internal"
- "github.com/spiral/roadrunner/v2/util"
-
- "github.com/spiral/goridge/v3"
+ events2 "github.com/spiral/roadrunner/v2/pkg/events"
"go.uber.org/multierr"
)
@@ -89,7 +88,7 @@ func InitBaseWorker(cmd *exec.Cmd) (worker.BaseProcess, error) {
}
w := &Process{
created: time.Now(),
- events: util.NewEventsHandler(),
+ events: events2.NewEventsHandler(),
cmd: cmd,
state: internal.NewWorkerState(internal.StateInactive),
stderr: new(bytes.Buffer),