1
0
Fork 0
forked from forgejo/forgejo

Rename QUEUE_NAME REDIS_QUEUE_NAME

This commit is contained in:
Andrew Thornton 2020-01-07 09:08:29 +00:00
parent a74b473655
commit 1f83b4fc9b
No known key found for this signature in database
GPG key ID: 3CDE74631F13A748
4 changed files with 22 additions and 22 deletions

View file

@ -44,19 +44,19 @@ type RedisQueue struct {
// RedisQueueConfiguration is the configuration for the redis queue
type RedisQueueConfiguration struct {
Network string
Addresses string
Password string
DBIndex int
BatchLength int
QueueLength int
QueueName string
Workers int
MaxWorkers int
BlockTimeout time.Duration
BoostTimeout time.Duration
BoostWorkers int
Name string
Network string
Addresses string
Password string
DBIndex int
BatchLength int
QueueLength int
RedisQueueName string
Workers int
MaxWorkers int
BlockTimeout time.Duration
BoostTimeout time.Duration
BoostWorkers int
Name string
}
// NewRedisQueue creates single redis or cluster redis queue
@ -84,7 +84,7 @@ func NewRedisQueue(handle HandlerFunc, cfg, exemplar interface{}) (Queue, error)
boostWorkers: config.BoostWorkers,
maxNumberOfWorkers: config.MaxWorkers,
},
queueName: config.QueueName,
queueName: config.RedisQueueName,
exemplar: exemplar,
closed: make(chan struct{}),
workers: config.Workers,