Browse Source

Update queue_redis.go (#9910)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
tags/v1.12.0-dev
zeripath GitHub 5 years ago
parent
commit
4cdb5dbe01
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      modules/queue/queue_redis.go

+ 6
- 5
modules/queue/queue_redis.go 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,
exemplar: exemplar,
closed: make(chan struct{}),
workers: config.Workers,
name: config.Name,
queueName: config.QueueName,
exemplar: exemplar,
closed: make(chan struct{}),
terminated: make(chan struct{}),
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")


Loading…
Cancel
Save