Skip to content

Commit

Permalink
fix: correctly mark messages to be reconsumed (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
fluyu committed Nov 28, 2021
1 parent a8b10ce commit a8f01df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumer/push_consumer.go
Expand Up @@ -1162,7 +1162,7 @@ func (pc *pushConsumer) consumeMessageOrderly(pq *processQueue, mq *primitive.Me
commitOffset = pq.commit()
case SuspendCurrentQueueAMoment:
if pc.checkReconsumeTimes(msgs) {
pq.putMessage(msgs...)
pq.makeMessageToCosumeAgain(msgs...)
time.Sleep(time.Duration(orderlyCtx.SuspendCurrentQueueTimeMillis) * time.Millisecond)
continueConsume = false
} else {
Expand Down

0 comments on commit a8f01df

Please sign in to comment.