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

WalletFilterProcessor: Minor refactoring #12170

Merged

Conversation

kiminuo
Copy link
Collaborator

@kiminuo kiminuo commented Jan 2, 2024

This PR improves a few minor things that I noticed while researching #12148.

Please review commit by commit (each one can be a mini PR).

_lastProcessedFilter = value;
}
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you explain why is this important please? I do not understand it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because LastProcessedFilter is accessed from multiple threads. In that situation, lock (..) or any other synchronization primitive should be used.

It serves also as a self-documentation that something like that actually happens.

@kiminuo kiminuo marked this pull request as ready for review January 2, 2024 18:19
@kiminuo kiminuo requested a review from adamPetho January 2, 2024 19:56
Copy link
Collaborator

@yahiheb yahiheb left a comment

Choose a reason for hiding this comment

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

LGTM

@kiminuo kiminuo merged commit 7f26465 into WalletWasabi:master Jan 3, 2024
7 checks passed
@kiminuo kiminuo deleted the feature/2023-01-02-WalletFilterProcessor branch January 3, 2024 08:49
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