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

feat: Add OnFailure and OnComplete hooks to ManagedSettlingHandler #98

Merged
merged 3 commits into from
Jan 10, 2023

Conversation

serbrech
Copy link
Member

Adding OnFailure and OnSuccess hook function to ManagedSettling handler.
This allows for example to report QoS on message handling via special log sync.

added unit tests for the handler

fixed 2 bugs

  • return after deadletterring was missing
  • standartd MaxAttemptRetryDecision had the comparison reversed

@serbrech serbrech changed the title add OnFailure and OnComplete hook feat: Add OnFailure and OnComplete hooks to ManagedSettlingHandler Jan 10, 2023
v2/managedsettling.go Show resolved Hide resolved
v2/managedsettling.go Show resolved Hide resolved
v2/managedsettling.go Outdated Show resolved Hide resolved
@serbrech serbrech requested a review from jaiveerk January 10, 2023 22:21
@serbrech serbrech self-assigned this Jan 10, 2023
@serbrech serbrech merged commit 864dfd2 into main Jan 10, 2023
@serbrech serbrech deleted the ster/HooksAndFixes branch January 10, 2023 22:26
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