diff options
author | Valery Piashchynski <[email protected]> | 2020-12-18 22:57:33 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-18 22:57:33 +0300 |
commit | ad39466afb39fac49977cfb97f20f682f54bf35e (patch) | |
tree | 59b630ad0ef9b52eb13e0df5c8e41d92ce277950 /interfaces/worker/worker.go | |
parent | ee0cb478c74c393a35155c2bf51e1ef260e0e5e2 (diff) |
Move roadrunner payload out of internal to pkgv2.0.0-alpha25
Diffstat (limited to 'interfaces/worker/worker.go')
-rw-r--r-- | interfaces/worker/worker.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/interfaces/worker/worker.go b/interfaces/worker/worker.go index edbc68d9..773dd044 100644 --- a/interfaces/worker/worker.go +++ b/interfaces/worker/worker.go @@ -8,6 +8,7 @@ import ( "github.com/spiral/goridge/v3" "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 @@ -56,7 +57,7 @@ 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) } |