1
0
Fork 0

Remove: left over code

This commit is contained in:
Aroy-Art 2024-07-18 23:25:52 +02:00
parent a54ddfe5f3
commit 634a24fe19
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -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)