forked from celestiaorg/celestia-node
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(share): use atomic.Int64 and fix 'racy' bugs (celestiaorg#3478)
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.
- Loading branch information
1 parent
bdac1d7
commit fe9c92c
Showing
1 changed file
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters