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
TurboSync: Remove an extra while
#10950
TurboSync: Remove an extra while
#10950
Conversation
If we remove it, how are we exiting the |
It would be actually good to add a test for |
Why don't remove the while instead? I think that was the idea of 5ea5805 |
Honestly, looking at the code, I'm more and more confused. I thought that @turbolay: You know the design better than me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the while makes no sense here - it is a leftover. In case of exception, the while won't retry. In case of success, the while won't iterate either.
So the idea of |
Yes. Whether we should retry or not, catch the exception or not, was my final question that I asked here: #10896 (comment). @molnard took over after this
This is true, the design for this is explained here: https://github.com/zkSNACKs/WalletWasabi/pull/10663/files#r1206981555 |
break
while
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove cancel.ThrowIfCancellationRequested();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
See #10948 (comment)