mirror of
https://github.com/hibiken/asynq.git
synced 2026-02-01 06:44:22 +00:00
Change rdb Dequeue signature
This commit is contained in:
@@ -70,7 +70,7 @@ func (p *processor) start() {
|
||||
// exec pulls a task out of the queue and starts a worker goroutine to
|
||||
// process the task.
|
||||
func (p *processor) exec() {
|
||||
msg, err := p.rdb.Dequeue(rdb.DefaultQueue, p.dequeueTimeout)
|
||||
msg, err := p.rdb.Dequeue(p.dequeueTimeout)
|
||||
if err == rdb.ErrDequeueTimeout {
|
||||
// timed out, this is a normal behavior.
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user