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

Simplify payment yield flow #954

Merged
merged 3 commits into from
Apr 30, 2024

Conversation

ok300
Copy link
Contributor

@ok300 ok300 commented Apr 29, 2024

This is an attempt to reduce code duplication and improve readability of the payment yield flow.

@ok300
Copy link
Contributor Author

ok300 commented Apr 29, 2024

I just realised (see previous commit) that the yield timeout is essentially req.pending_timeout_sec or infinity.

The upper bound is practically the node API timeout, but collapsing the timeout handling branches into one IMO achieves the same purpose, but in a simpler way.

Copy link
Contributor

@JssDWt JssDWt left a comment

Choose a reason for hiding this comment

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

Looks good!

@dangeross dangeross merged commit 4a730da into savage-send-payment-yield Apr 30, 2024
5 of 7 checks passed
@dangeross dangeross deleted the ok300-savage-send-payment-yield branch April 30, 2024 04:45
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.

3 participants