diff options
author | Valery Piashchynski <[email protected]> | 2021-08-11 13:42:33 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-11 13:42:33 +0300 |
commit | de37ed3ae8d08a50d9ffe088c1d58d9dffdf7c9b (patch) | |
tree | 712a47dde5941dd53c9f12ae41e62384df57b4b4 /plugins/jobs/drivers/sqs | |
parent | 2924f4b4daa3c53408a036583dcc39f6de805e2b (diff) |
Add headers support to the jobs protocol
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/drivers/sqs')
-rw-r--r-- | plugins/jobs/drivers/sqs/item.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/jobs/drivers/sqs/item.go b/plugins/jobs/drivers/sqs/item.go index cd2f6104..a761d6bd 100644 --- a/plugins/jobs/drivers/sqs/item.go +++ b/plugins/jobs/drivers/sqs/item.go @@ -140,9 +140,10 @@ func (i *Item) Nack() error { return nil } -func (i *Item) Requeue(delay int64) error { +func (i *Item) Requeue(headers map[string][]string, delay int64) error { // overwrite the delay i.Options.Delay = delay + i.Headers = headers select { case i.Options.requeueCh <- i: return nil |