Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

Commit efb9c7f

Browse files
authored
Update queue.go
1 parent af5943e commit efb9c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

broker/amqp/queue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func (q *queue) publish(cp *chanPool, id string, attempt int, j *jobs.Job, delay
174174

175175
if delay != 0 {
176176
delayMs := int64(delay.Seconds() * 1000)
177-
qName = fmt.Sprintf("delayed-%d.%s.%s", delayMs, q.exchange, q.name)
177+
qName := fmt.Sprintf("delayed-%d.%s.%s", delayMs, q.exchange, q.name)
178178
qKey = qName
179179

180180
err := q.declare(cp, qName, qName, amqp.Table{

0 commit comments

Comments
 (0)