Skip to content

Commit

Permalink
Merge pull request #11 from santi-giraldo2/fix
Browse files Browse the repository at this point in the history
add extra validate entries
  • Loading branch information
jdmoralesar authored Oct 25, 2023
2 parents 634e9ff + 853e156 commit 0ff6df8
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 0ff6df8

Please sign in to comment.