diff options
author | Valery Piashchynski <[email protected]> | 2020-12-17 10:19:01 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-17 10:19:01 +0300 |
commit | acb53196f8ff4518c515225b39c6fb2bac64faae (patch) | |
tree | 3c016e03132a38ec3dd3fce737120a0fdc9642c9 /pkg/pool/static_pool.go | |
parent | 8422e300f64f20d86ffccf773d41109285bbc12d (diff) |
Update events handler, add mutex to push
Diffstat (limited to 'pkg/pool/static_pool.go')
-rwxr-xr-x | pkg/pool/static_pool.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/pool/static_pool.go b/pkg/pool/static_pool.go index 691290b2..6cc42143 100755 --- a/pkg/pool/static_pool.go +++ b/pkg/pool/static_pool.go @@ -9,9 +9,9 @@ import ( "github.com/spiral/roadrunner/v2/interfaces/pool" "github.com/spiral/roadrunner/v2/interfaces/worker" "github.com/spiral/roadrunner/v2/internal" + events2 "github.com/spiral/roadrunner/v2/pkg/events" syncWorker "github.com/spiral/roadrunner/v2/pkg/worker" workerWatcher "github.com/spiral/roadrunner/v2/pkg/worker_watcher" - "github.com/spiral/roadrunner/v2/util" ) // StopRequest can be sent by worker to indicate that restart is required. @@ -71,7 +71,7 @@ func NewPool(ctx context.Context, cmd func() *exec.Cmd, factory worker.Factory, cfg: cfg, cmd: cmd, factory: factory, - events: util.NewEventsHandler(), + events: events2.NewEventsHandler(), after: make([]After, 0, 0), before: make([]Before, 0, 0), } |