Skip to content

Commit

Permalink
Fix getting message channel instead of channel
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmtszr committed Jan 6, 2023
1 parent c03e6a6 commit 8d445a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka/producer/producer_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (b *producerBatch) StartBatch() {
}

func (b *producerBatch) FlushMessages() error {
messageCount := len(b.messageChn)
messageCount := len(b.messages)
if messageCount == 0 {
return nil
}
Expand Down

0 comments on commit 8d445a7

Please sign in to comment.