diff options
author | Valery Piashchynski <[email protected]> | 2020-12-20 18:28:46 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-20 18:28:46 +0300 |
commit | f4a36c7f684216fb408693a6c494486144df57cf (patch) | |
tree | e1b61bf7e74cb63aa45f9ca0284a4cffe8e06b0e /interfaces/worker | |
parent | fbd5adde5abae6f7adb7fcdafc226bcd3480d498 (diff) | |
parent | a10d20d20e910ed8fcfbc3bc690aaf17ee338ff3 (diff) |
Merge remote-tracking branch 'origin/2.0' into plugin/redis
# Conflicts:
# go.sum
# pkg/pipe/pipe_factory_test.go
# pkg/pool/static_pool.go
# plugins/rpc/plugin.go
Diffstat (limited to 'interfaces/worker')
-rw-r--r-- | interfaces/worker/worker.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/interfaces/worker/worker.go b/interfaces/worker/worker.go index edbc68d9..f830fdf2 100644 --- a/interfaces/worker/worker.go +++ b/interfaces/worker/worker.go @@ -5,9 +5,10 @@ import ( "fmt" "time" - "github.com/spiral/goridge/v3" + "github.com/spiral/goridge/v3/interfaces/relay" "github.com/spiral/roadrunner/v2/interfaces/events" "github.com/spiral/roadrunner/v2/internal" + "github.com/spiral/roadrunner/v2/pkg/payload" ) // Allocator is responsible for worker allocation in the pool @@ -46,17 +47,17 @@ type BaseProcess interface { Kill() error // Relay returns attached to worker goridge relay - Relay() goridge.Relay + Relay() relay.Relay // AttachRelay used to attach goridge relay to the worker process - AttachRelay(rl goridge.Relay) + AttachRelay(rl relay.Relay) } type SyncWorker interface { // BaseProcess provides basic functionality for the SyncWorker BaseProcess // Exec used to execute payload on the SyncWorker, there is no TIMEOUTS - Exec(rqs internal.Payload) (internal.Payload, error) + Exec(rqs payload.Payload) (payload.Payload, error) // ExecWithContext used to handle Exec with TTL - ExecWithContext(ctx context.Context, p internal.Payload) (internal.Payload, error) + ExecWithContext(ctx context.Context, p payload.Payload) (payload.Payload, error) } |