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()
|
||||
|
||||
queue := make(chan *model.Request)
|
||||
workers := make(chan chan *model.Request)
|
||||
worker.NewDispatch(queue, workers).Start()
|
||||
workerc := make(chan chan *model.Request)
|
||||
worker.NewDispatch(queue, workerc).Start()
|
||||
|
||||
// there must be a minimum of 1 worker
|
||||
if workers <= 0 {
|
||||
|
@ -95,7 +95,7 @@ func main() {
|
|||
|
||||
// create the specified number of worker nodes
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue