refactor: modernize sync/atomic usage with typed atomic apis#3269
refactor: modernize sync/atomic usage with typed atomic apis#3269julienrbrt merged 1 commit intoevstack:mainfrom
Conversation
Signed-off-by: chuanshanjida <chuanshanjida@outlook.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThese changes refactor atomic operation patterns in test files, replacing pointer-based Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3269 +/- ##
=======================================
Coverage 62.48% 62.49%
=======================================
Files 122 122
Lines 13012 13012
=======================================
+ Hits 8131 8132 +1
+ Misses 3995 3994 -1
Partials 886 886
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Overview
Replace legacy sync/atomic function-based API (AddInt32, LoadInt32, etc.)
with Go 1.19+ typed atomic types (atomic.Int32, atomic.Int64, etc.).
This change:
The transformation is source-compatible and requires Go 1.19 or later.
Summary by CodeRabbit