Skip to content

feat:migration from go.uber.org/atomic to sync/atomic#20718

Open
R-Kri wants to merge 2 commits intografana:mainfrom
R-Kri:replace-uber-atomic
Open

feat:migration from go.uber.org/atomic to sync/atomic#20718
R-Kri wants to merge 2 commits intografana:mainfrom
R-Kri:replace-uber-atomic

Conversation

@R-Kri
Copy link

@R-Kri R-Kri commented Feb 6, 2026

What this PR does:
This PR starts the migration from go.uber.org/atomic to Go's standard library sync/atomic as proposed in #20673.

Which issue(s) this PR fixes:
Fixes #20673

Changes made:
Removed faillint rule blocking sync/atomic usage and Migrated pkg/bloomgateway/stats.go (atomic.Duration → atomic.Int64)

Question:
I hit edge cases with atomic.Float64, atomic.Duration, and atomic.String which don't exist in sync/atomic. Should I:

  1. Only migrate files using Int32/Int64/Uint32/Uint64/Bool?
  2. Or handle special types (Float64→Uint64+math.Float64bits, Duration→Int64, etc.)?

What's the preferred approach?

@R-Kri R-Kri requested a review from a team as a code owner February 6, 2026 11:28
@CLAassistant
Copy link

CLAassistant commented Feb 6, 2026

CLA assistant check
All committers have signed the CLA.

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.

Replace go.uber.go/atomic with Go standard library sync/atomic

2 participants