Skip to content

Commit

Permalink
Make boids concurrent
Browse files Browse the repository at this point in the history
  • Loading branch information
minkezhang committed Jan 8, 2023
1 parent ca1c977 commit b0a3a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boids/boids.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ func (b *B) generate() []result {
}
}(ch)
}
wg.Wait()
close(ch)
wg.Wait()
close(ch)
}(ch)

results := make([]result, 0, 1024)
Expand Down

0 comments on commit b0a3a7a

Please sign in to comment.