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

refactor(share): use atomic.Int64 and fix 'racy' bugs #3478

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

cristaloleg
Copy link
Contributor

Moving from raw int64 and atomic operations to the atomic.Int64 type. As a result fixing a few places where we were accessing atomic variables non-atomically. Which isn't a problem 'cause there were only reads BUT these places would reported by race detector and fail our tests for not a big reason.

@cristaloleg cristaloleg added the kind:refactor Attached to refactoring PRs label Jun 7, 2024
@cristaloleg cristaloleg merged commit fe9c92c into main Jun 8, 2024
31 of 32 checks passed
@cristaloleg cristaloleg deleted the share/ipld/use-atomic.Int64 branch June 8, 2024 09:40
@cristaloleg cristaloleg self-assigned this Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:refactor Attached to refactoring PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants