2
0
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:
Ken Hibino
2019-12-04 06:25:58 -08:00
parent d4e442d04f
commit 39f177dabf
3 changed files with 25 additions and 27 deletions

View File

@@ -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