summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-11 13:42:33 +0300
committerValery Piashchynski <[email protected]>2021-08-11 13:42:33 +0300
commitde37ed3ae8d08a50d9ffe088c1d58d9dffdf7c9b (patch)
tree712a47dde5941dd53c9f12ae41e62384df57b4b4 /pkg
parent2924f4b4daa3c53408a036583dcc39f6de805e2b (diff)
Add headers support to the jobs protocol
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/priority_queue/binary_heap_test.go2
-rw-r--r--pkg/priority_queue/interface.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/priority_queue/binary_heap_test.go b/pkg/priority_queue/binary_heap_test.go
index fa0c5c29..fb5b83de 100644
--- a/pkg/priority_queue/binary_heap_test.go
+++ b/pkg/priority_queue/binary_heap_test.go
@@ -20,7 +20,7 @@ func (t Test) Nack() error {
return nil
}
-func (t Test) Requeue(_ int64) error {
+func (t Test) Requeue(_ map[string][]string, _ int64) error {
return nil
}
diff --git a/pkg/priority_queue/interface.go b/pkg/priority_queue/interface.go
index 3d192e8a..9efa4652 100644
--- a/pkg/priority_queue/interface.go
+++ b/pkg/priority_queue/interface.go
@@ -27,5 +27,5 @@ type Item interface {
Nack() error
// Requeue - put the message back to the queue with the optional delay
- Requeue(delay int64) error
+ Requeue(headers map[string][]string, delay int64) error
}