Remove: left over code
This commit is contained in:
parent
a54ddfe5f3
commit
634a24fe19
1 changed files with 3 additions and 5 deletions
|
@ -56,13 +56,11 @@ func main() {
|
|||
}
|
||||
|
||||
// Send tasks to the task channel
|
||||
for i := 1; i <= numTasks; i++ {
|
||||
n := rand.Intn(maxFib - minFib)
|
||||
tasks <- Task{id: i, n: 30} // n=30 is computationally intensive for Fibonacci
|
||||
}
|
||||
|
||||
for i := 1; i <= numTasks; i++ {
|
||||
n := rand.Intn(maxFib - minFib) // Random number between minFib and maxFib
|
||||
tasks <- Task{id: i, n: n}
|
||||
}
|
||||
|
||||
// Close the task channel to signal no more tasks
|
||||
close(tasks)
|
||||
|
||||
|
|
Loading…
Reference in a new issue