Skip to content

enhancement atomic_pointer #782

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

Merged
merged 4 commits into from
Mar 1, 2025
Merged

Conversation

kendriyavid
Copy link
Contributor

Changes error from atomic.Value to Atomic.pointer
Fixes #776

@rueian
Copy link
Collaborator

rueian commented Feb 27, 2025

Hi @kendriyavid, could you resolve those build failures?

@kendriyavid
Copy link
Contributor Author

Hi @kendriyavid, could you resolve those build failures?

Yeah, I’m on it! This is my first time diving this deep 😅, so I’m learning a lot along the way. I’ll update you soon.

@rueian
Copy link
Collaborator

rueian commented Feb 28, 2025

Hi @kendriyavid, I think you should change this as well

error atomic.Value

pipe.go Outdated
@@ -118,6 +118,7 @@ func _newPipe(connFn func() (net.Conn, error), option *ClientOption, r2ps, nobg

r2ps: r2ps,
}
p.error.Store(&errs{})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
p.error.Store(&errs{})

Adding this is incorrect.

@kendriyavid
Copy link
Contributor Author

Hi @rueian, thanks for the help, now It is passing all the tests

@rueian rueian merged commit cbf3ea3 into redis:main Mar 1, 2025
27 checks passed
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.

Replace error atomic.Value with error atomic.Pointer[errs]
2 participants