Skip to content

Commit

Permalink
produce: make sure the last set of messages are sent on EOF. fix #27
Browse files Browse the repository at this point in the history
  • Loading branch information
fgeller committed Jun 22, 2016
1 parent 4ee3d75 commit 8191083
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions produce.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ func batchRecords(wg *sync.WaitGroup, in chan message, out chan []message) {
select {
case m, ok := <-in:
if !ok {
send()
return
}

Expand Down

0 comments on commit 8191083

Please sign in to comment.