summaryrefslogtreecommitdiff
path: root/plugins/jobs/brokers/amqp/rabbit.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jobs/brokers/amqp/rabbit.go')
-rw-r--r--plugins/jobs/brokers/amqp/rabbit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jobs/brokers/amqp/rabbit.go b/plugins/jobs/brokers/amqp/rabbit.go
index 7e722889..4d75dc0e 100644
--- a/plugins/jobs/brokers/amqp/rabbit.go
+++ b/plugins/jobs/brokers/amqp/rabbit.go
@@ -73,7 +73,7 @@ func (j *JobsConsumer) listener(deliv <-chan amqp.Delivery) {
}
// add task to the queue
- j.pq.Insert(From(msg))
+ j.pq.Insert(FromDelivery(msg))
case <-j.stop:
return
}