Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug when batch size is less than number of consumed messages #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

axlon
Copy link
Contributor

@axlon axlon commented Nov 19, 2024

The InMemoryOutboxRepository limits its result first and then filters it, all other implementations filter first and then limit the number of messages.

This behavior causes the InMemoryOutboxRepository to return less results than are actually available when messages are consumed, if the batch size is smaller than the number of consumed messages nothing is returned at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant