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

Add the logic of cancelling operations if the round ends prematurely 2 #9727

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

molnard
Copy link
Collaborator

@molnard molnard commented Dec 9, 2022

Refactoring #9681

@molnard molnard marked this pull request as ready for review December 9, 2022 12:23
Copy link
Collaborator

@lontivero lontivero left a comment

Choose a reason for hiding this comment

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

It seems to be okay.

@molnard molnard merged commit 4c404f1 into WalletWasabi:master Dec 14, 2022
@molnard molnard deleted the cancelonroundEnd branch December 14, 2022 11:19
waitRoundEndedTaskCts.Cancel();
try
{
_ = await waitRoundEndedTask.ConfigureAwait(false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

@molnard Why we don't do

roundState = await waitRoundEndedTask.ConfigureAwait(false);

if the task can provide that value, it's "latest one can get" for that specific round, or not?

@kiminuo
Copy link
Collaborator

kiminuo commented Dec 14, 2022

Post-mortem but LGTM

Would be nice to have some tests for this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants