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 yielding send_payment handling with timeout #958

Merged

Conversation

ok300
Copy link
Contributor

@ok300 ok300 commented Apr 30, 2024

This PR fixes a bug that was introduced by #954 .

The bug caused send_payment to not return when no timeout was specified. Internally, this was caused by different behaviors of std::sync::mpsc::channel() than tokio::sync::oneshot::channel(). The later terminates and yields back control to the runtime when the spawned thread terminates, as expected.

@ok300 ok300 merged commit 49c2b4e into savage-send-payment-yield Dec 9, 2024
7 checks passed
@ok300 ok300 deleted the ok300-savage-send-payment-yield-v4 branch December 9, 2024 11:12
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