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 RPC pending queue error handling #332

Merged

Conversation

tom-binary
Copy link
Contributor

Applies some improvements to our initial pending-message-claim sequence, and how we deal with exceptions thrown by various related paths.

We were only looping if the group flag had been set, which doesn't
happen until after this method returns.

It doesn't really make sense to have that check at all - if the group
disappears in Redis, then we'd expect this to throw an exception
instead.
We rely on `UNIVERSAL::DOES` here.

https://metacpan.org/pod/UNIVERSAL#$obj-%3EDOES(-ROLE-)

See also pull request deriv-com#301, which has a similar fix.
@tom-binary tom-binary merged commit cdd8fbb into deriv-com:master Jul 22, 2024
1 check passed
@tom-binary tom-binary deleted the bugfix/rpc_pending_error_handling branch July 22, 2024 04:55
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.

1 participant