diff options
author | Valery Piashchynski <[email protected]> | 2021-06-26 00:10:45 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-26 00:10:45 +0300 |
commit | 7c0b63a9d0cee75e8bdedd2dcd0c20139f3ffd3f (patch) | |
tree | dbc09a665fb75d51f4b01a83cd80b7f2ddab0aae /pkg/worker_watcher/container/interface.go | |
parent | ae58af3ca1d37cb61f106146e4bf9bd1d033e8b3 (diff) |
- Better channel handling
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/worker_watcher/container/interface.go')
-rw-r--r-- | pkg/worker_watcher/container/interface.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/worker_watcher/container/interface.go b/pkg/worker_watcher/container/interface.go index 0e648d34..e10ecdae 100644 --- a/pkg/worker_watcher/container/interface.go +++ b/pkg/worker_watcher/container/interface.go @@ -1,6 +1,8 @@ package container import ( + "context" + "github.com/spiral/roadrunner/v2/pkg/worker" ) @@ -9,7 +11,7 @@ type Vector interface { // Enqueue used to put worker to the vector Enqueue(worker.BaseProcess) // Dequeue used to get worker from the vector - Dequeue() (worker.BaseProcess, bool) + Dequeue(ctx context.Context) (worker.BaseProcess, error) // Destroy used to stop releasing the workers Destroy() } |