diff options
Diffstat (limited to 'pkg/transport/socket/socket_factory.go')
-rwxr-xr-x | pkg/transport/socket/socket_factory.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/transport/socket/socket_factory.go b/pkg/transport/socket/socket_factory.go index ccd2b0bf..98bd2389 100755 --- a/pkg/transport/socket/socket_factory.go +++ b/pkg/transport/socket/socket_factory.go @@ -13,6 +13,7 @@ import ( "github.com/spiral/goridge/v3/pkg/socket" "github.com/spiral/roadrunner/v2/internal" "github.com/spiral/roadrunner/v2/pkg/events" + "github.com/spiral/roadrunner/v2/pkg/states" "github.com/spiral/roadrunner/v2/pkg/worker" "go.uber.org/multierr" @@ -124,7 +125,7 @@ func (f *Factory) SpawnWorkerWithTimeout(ctx context.Context, cmd *exec.Cmd, lis } w.AttachRelay(rl) - w.State().Set(internal.StateReady) + w.State().Set(states.StateReady) c <- socketSpawn{ w: w, @@ -167,7 +168,7 @@ func (f *Factory) SpawnWorker(cmd *exec.Cmd, listeners ...events.Listener) (*wor } w.AttachRelay(rl) - w.State().Set(internal.StateReady) + w.State().Set(states.StateReady) return w, nil } |