Skip to content

Commit

Permalink
fix: remove mutex lock causing deadlocks when Consumer.Return.Errors …
Browse files Browse the repository at this point in the history
…is enabled
  • Loading branch information
stevenvdr committed Dec 31, 2019
1 parent d514254 commit 8847ac5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions consumer_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,6 @@ func (c *consumerGroup) handleError(err error, topic string, partition int32) {
return
}

c.lock.Lock()
defer c.lock.Unlock()

select {
case <-c.closed:
//consumer is closed
Expand Down

0 comments on commit 8847ac5

Please sign in to comment.