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

Improve usage of atomic counter #2386

Merged
merged 1 commit into from May 1, 2024
Merged

Improve usage of atomic counter #2386

merged 1 commit into from May 1, 2024

Conversation

viquezclaudio
Copy link
Contributor

@viquezclaudio viquezclaudio commented Apr 22, 2024

Use load instead of fetch_add when obtaining and comparing the value of mempool's verification tasks counter

  • All tests pass. The project builds and runs.
  • I have resolved any merge conflicts.
  • I have resolved all clippy and rustfmt warnings.

Copy link
Contributor

@hrxi hrxi left a comment

Choose a reason for hiding this comment

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

Looks like a clear improvement to me.

Use load instead of fetch_add when obtaining and compairing the value of mempool's verification tasks counter
@hrxi
Copy link
Contributor

hrxi commented May 1, 2024

Rebasing.

@hrxi hrxi merged commit b7bac0c into albatross May 1, 2024
6 checks passed
@hrxi hrxi deleted the viquezcl/mempool branch May 1, 2024 14:32
@jsdanielh jsdanielh added this to the Nimiq PoS Mainnet milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants