Skip to content

Commit

Permalink
Fix leaking kafka consumer (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
vancexu authored Aug 21, 2018
1 parent 0300251 commit 71e126f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/messaging/kafkaClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (c *kafkaConsumer) Start() error {
select {
case <-c.doneC:
c.logger.Info("Stop consuming messages from channel")
break
return
// our Message interface is just a subset of Message interface in kafka-client so we don't need a wrapper here
case uMsg := <-c.uConsumer.Messages():
c.msgC <- uMsg
Expand Down

0 comments on commit 71e126f

Please sign in to comment.