Skip to content

Commit

Permalink
cancel consumer control messages when channel is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
cha87de committed Nov 7, 2018
1 parent ec8dce0 commit 4356a0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kafka-listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func handleControlMessages() {
for {
ctrlMsg, ok := <-ctrlChan
if !ok {
kafkaConn.CancelConsumerControlMessages()
return
}
partition := ctrlMsg.Partition
Expand Down

0 comments on commit 4356a0f

Please sign in to comment.