mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 01:34:27 +00:00 
			
		
		
		
	Update queue_redis.go (#9910)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		@@ -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")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user