mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-22 15:18:43 +00:00
fixed naming conflict between workers int and workers chan
This commit is contained in:
parent
f9c503f74b
commit
7d48ecad14
1 changed files with 3 additions and 3 deletions
|
@ -85,8 +85,8 @@ func main() {
|
||||||
go commits.CancelAll()
|
go commits.CancelAll()
|
||||||
|
|
||||||
queue := make(chan *model.Request)
|
queue := make(chan *model.Request)
|
||||||
workers := make(chan chan *model.Request)
|
workerc := make(chan chan *model.Request)
|
||||||
worker.NewDispatch(queue, workers).Start()
|
worker.NewDispatch(queue, workerc).Start()
|
||||||
|
|
||||||
// there must be a minimum of 1 worker
|
// there must be a minimum of 1 worker
|
||||||
if workers <= 0 {
|
if workers <= 0 {
|
||||||
|
@ -95,7 +95,7 @@ func main() {
|
||||||
|
|
||||||
// create the specified number of worker nodes
|
// create the specified number of worker nodes
|
||||||
for i := 0; i < workers; i++ {
|
for i := 0; i < workers; i++ {
|
||||||
worker.NewWorker(workers, users, repos, commits, pubsub, &model.Server{}).Start()
|
worker.NewWorker(workerc, users, repos, commits, pubsub, &model.Server{}).Start()
|
||||||
}
|
}
|
||||||
|
|
||||||
// setup the session managers
|
// setup the session managers
|
||||||
|
|
Loading…
Reference in a new issue