Skip to content

Commit

Permalink
fix queue bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yanjiaxin534 committed Jan 23, 2025
1 parent 382b25a commit 03bdb49
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,10 @@ func (rq *RedisQueueProvider) QueryByPaging(queueName string, start string, size
lastMessageID := ""
if len(xMessages) > size {
xMessages = xMessages[:size]
lastMessageID = xMessages[len(xMessages)-2].ID
lastMessageID = xMessages[len(xMessages)-1].ID
}
var results [][]byte

for _, xMsg := range xMessages {
jsonData := xMsg.Values["data"].(string)
results = append(results, []byte(jsonData))
Expand Down

0 comments on commit 03bdb49

Please sign in to comment.