Skip to content

Commit

Permalink
add extra validate entries
Browse files Browse the repository at this point in the history
  • Loading branch information
santi-giraldo2 committed Oct 25, 2023
1 parent 634e9ff commit 853e156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func ConsumePendingOneByOne(ctx context.Context, client *redis.Client, groupName
return nil, err
}

if len(entries) > 0 {
if len(entries) > 0 && len(entries[0].Messages) > 0 {
return &entries[0].Messages[0], nil
}

Expand Down

0 comments on commit 853e156

Please sign in to comment.