Skip to content

Commit 05b9864

Browse files
zeripathlunny
authored andcommitted
Update queue_redis.go (#9911)
1 parent ff508c9 commit 05b9864

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

modules/queue/queue_redis.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,12 @@ func NewRedisQueue(handle HandlerFunc, cfg, exemplar interface{}) (Queue, error)
8484
boostWorkers: config.BoostWorkers,
8585
maxNumberOfWorkers: config.MaxWorkers,
8686
},
87-
queueName: config.QueueName,
88-
exemplar: exemplar,
89-
closed: make(chan struct{}),
90-
workers: config.Workers,
91-
name: config.Name,
87+
queueName: config.QueueName,
88+
exemplar: exemplar,
89+
closed: make(chan struct{}),
90+
terminated: make(chan struct{}),
91+
workers: config.Workers,
92+
name: config.Name,
9293
}
9394
if len(dbs) == 0 {
9495
return nil, errors.New("no redis host specified")

0 commit comments

Comments
 (0)