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 missing hearbeats future wakup #671

Merged
merged 2 commits into from
Oct 25, 2022
Merged

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Oct 25, 2022

The previous solution worked only because after some time, something was polled. It was never related to heartbeats one shot try_recv(), because, quoting tokio docs

If no value has been sent, the current task will not be registered for future notification.

I switched to mpsc for simplicity.

Signed-off-by: Tomasz Pietrek [email protected]

@Jarema Jarema requested a review from caspervonb October 25, 2022 09:19
@Jarema Jarema force-pushed the jarema/fix-hearbeats-wakeup branch from 2acc802 to 0a3536e Compare October 25, 2022 09:31
Signed-off-by: Tomasz Pietrek <[email protected]>
Copy link
Collaborator

@caspervonb caspervonb left a comment

Choose a reason for hiding this comment

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

lgtm

@Jarema Jarema merged commit 8561a18 into main Oct 25, 2022
@Jarema Jarema deleted the jarema/fix-hearbeats-wakeup branch October 25, 2022 15:09
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