Skip to content

Commit

Permalink
fix consumer doesn't consume message because of blocked on Lock in so…
Browse files Browse the repository at this point in the history
…me case
  • Loading branch information
wangzeping722 committed Aug 20, 2022
1 parent fedf106 commit 63ba854
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consumer/process_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func (pq *processQueue) putMessage(messages ...*primitive.MessageExt) {
if !pq.order {
select {
case <-pq.closeChan:
pq.mutex.Unlock()
return
case pq.msgCh <- messages:
}
Expand Down

0 comments on commit 63ba854

Please sign in to comment.