Skip to content
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

Use sync.OnceValue for SupportsEd25519 #205

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Conversation

dagood
Copy link
Collaborator

@dagood dagood commented Oct 8, 2024

I noticed sync.Once in the existing code near what #204 changed. sync.OnceValue is a good fit to simplify this code, now that we're able to use it.

The only other remaining use of "raw" Once in the repo is openssl.go's initOnce. It takes a parameter passed from outside the module, so it isn't a good fit for OnceFunc/OnceValue/OnceValues and should keep using Once, IMO.

Enable "Hide whitespace" for an easier review.

@mertakman mertakman self-requested a review October 8, 2024 18:04
@dagood dagood changed the base branch from fix-ed25519-tests to v2 October 8, 2024 18:17
@qmuntal qmuntal merged commit 76b4e14 into v2 Oct 10, 2024
52 checks passed
@gdams gdams deleted the dev/dagood/ed25519-oncevalue branch October 10, 2024 09:57
bdhill-arista pushed a commit to aristanetworks/go-openssl-fips that referenced this pull request Oct 10, 2024
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.

4 participants