Update queue_redis.go (#9911)

This commit is contained in:
zeripath 2020-01-21 12:02:25 +00:00 committed by Lunny Xiao
parent ff508c9c9b
commit 05b9864086
1 changed files with 6 additions and 5 deletions

View File

@ -84,11 +84,12 @@ func NewRedisQueue(handle HandlerFunc, cfg, exemplar interface{}) (Queue, error)
boostWorkers: config.BoostWorkers, boostWorkers: config.BoostWorkers,
maxNumberOfWorkers: config.MaxWorkers, maxNumberOfWorkers: config.MaxWorkers,
}, },
queueName: config.QueueName, queueName: config.QueueName,
exemplar: exemplar, exemplar: exemplar,
closed: make(chan struct{}), closed: make(chan struct{}),
workers: config.Workers, terminated: make(chan struct{}),
name: config.Name, workers: config.Workers,
name: config.Name,
} }
if len(dbs) == 0 { if len(dbs) == 0 {
return nil, errors.New("no redis host specified") return nil, errors.New("no redis host specified")