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

chore: ensure persistence receiver is dropped #10133

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

fgimenez
Copy link
Member

@fgimenez fgimenez commented Aug 6, 2024

Closes: #10115

I've taken the opportunity to remove the current panic on TryRecvError::Closed

panic!("persistence task has been terminated");
}
_ => {}
Err(err) => return Err(err),
Copy link
Collaborator

Choose a reason for hiding this comment

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

we need to handle the TryRecvError::Empty case here and assign the rx back to .persistence_state otherwise we're only trying to receive it once and dropping the receiver if there's no response yet

Copy link
Member Author

Choose a reason for hiding this comment

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

sure, sorry missed that part, done here dde3f1c

@mattsse mattsse added the C-bug An unexpected or incorrect behavior label Aug 6, 2024
@mattsse mattsse added this pull request to the merge queue Aug 6, 2024
Merged via the queue into main with commit 35532e7 Aug 6, 2024
32 checks passed
@mattsse mattsse deleted the fgimenez/ensure-persistence-receiver-dropped branch August 6, 2024 15:22
martinezjorge pushed a commit to martinezjorge/reth that referenced this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure persistence receiver is dropped when value is received
2 participants