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

Open
wants to merge 1 commit into
base: savage-send-payment-yield
Choose a base branch
from

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.

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