Skip to content

Commit

Permalink
fix request offset not changed in some case
Browse files Browse the repository at this point in the history
  • Loading branch information
dengzhiwen1 committed Jun 16, 2022
1 parent d86140d commit fbce7c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consumer/push_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,8 @@ func (pc *pushConsumer) pullMessage(request *PullRequest) {
goto NEXT
}

pc.processPullResult(request.mq, result, sd)

switch result.Status {
case primitive.PullFound:
rlog.Debug(fmt.Sprintf("Topic: %s, QueueId: %d found messages.", request.mq.Topic, request.mq.QueueId), nil)
Expand All @@ -766,8 +768,6 @@ func (pc *pushConsumer) pullMessage(request *PullRequest) {
rt := time.Now().Sub(beginTime) / time.Millisecond
pc.stat.increasePullRT(pc.consumerGroup, request.mq.Topic, int64(rt))

pc.processPullResult(request.mq, result, sd)

msgFounded := result.GetMessageExts()
firstMsgOffset := int64(math.MaxInt64)
if msgFounded != nil && len(msgFounded) != 0 {
Expand Down

0 comments on commit fbce7c4

Please sign in to comment.