Skip to content

fix(retry): correct retry logic and add tests - #66

Merged
dbrattli merged 2 commits into
dbrattli:masterfrom
K-tec-UK:retry
Sep 11, 2025
Merged

dbrattli merged 2 commits into
dbrattli:masterfrom
K-tec-UK:retry

Conversation

@mjkaye

@mjkaye mjkaye commented Sep 11, 2025

Copy link
Copy Markdown
Contributor

The retry operator had a couple of bugs that caused incorrect retry behavior. It used count -= count rather than count -= 1. Also, the retry count was shared across subscriptions.

This fix rewrites the implementation to correctly manage retry count per subscription. Added tests to verify the behavior.

The retry operator had a bug that caused incorrect retry behavior. This fix rewrites
the implementation to correctly manage retry count per subscription. Added tests to verify the behavior under various scenarios.

@dbrattli dbrattli left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing 😊

@dbrattli
dbrattli merged commit e01fc61 into dbrattli:master Sep 11, 2025
3 checks passed
@mjkaye
mjkaye deleted the retry branch September 12, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants