Skip to content

Commit

Permalink
WaitGroup problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Nov 16, 2023
1 parent 0f423c5 commit 35b6a3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func main() {
output := bufio.NewWriter(writeto)
defer output.Flush()

consumerWait.Add(1)
go func() {
defer consumerWait.Done()
var sb strings.Builder
Expand Down

0 comments on commit 35b6a3f

Please sign in to comment.