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

FilterProcessor: Remove lock #11058

Conversation

kiminuo
Copy link
Collaborator

@kiminuo kiminuo commented Jul 18, 2023

I found this during review of #11046. Given how complex that block filter processing is, I find it useful to remove unnecessary complexities.

@@ -17,67 +15,63 @@ public FilterProcessor(BitcoinStore bitcoinStore)
}

private BitcoinStore BitcoinStore { get; }
private AsyncLock AsyncLock { get; } = new();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ProcessAsync is called just from one place so the lock has no function at all at the moment.

@lontivero
Copy link
Collaborator

The lock makes no sense.

@kiminuo kiminuo marked this pull request as ready for review July 18, 2023 12:17
Copy link
Collaborator

@adamPetho adamPetho left a comment

Choose a reason for hiding this comment

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

LGTM

@lontivero lontivero merged commit c7ad576 into zkSNACKs:master Jul 18, 2023
7 checks passed
@kiminuo kiminuo deleted the feature/2023-07-18-FiltersProcessor-remove-extra-lock branch July 18, 2023 19:43
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