Skip to content

Conversation

@cuiweixie
Copy link

No description provided.

Copilot AI review requested due to automatic review settings October 25, 2025 10:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the syncedReader struct to use Go's atomic.Uint32 and atomic.Uint64 types instead of raw uint32/uint64 fields with atomic functions. This modernizes the code by leveraging type-safe atomic operations introduced in Go 1.19.

Key Changes:

  • Updated field declarations from uint32/uint64 to atomic.Uint32/atomic.Uint64
  • Replaced atomic function calls (atomic.LoadUint64, atomic.StoreUint32, etc.) with method calls on atomic types

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: cui <cuiweixie@gmail.com>
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.

1 participant