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

Replace lazy_static with std::sync::OnceLock in nats-server #1298

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

barafael
Copy link
Contributor

@barafael barafael commented Aug 5, 2024

No description provided.

Copy link
Collaborator

@caspervonb caspervonb left a comment

Choose a reason for hiding this comment

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

Thanks for opening the pull request!

Previously we've replaced lazy_static with Lazy (e.g 70d34f6).

LazyCell just landed in v1.80, can we use that instead? (https://doc.rust-lang.org/std/cell/struct.LazyCell.html)

That'd apply to all the crates, probably removing both the dependency on once_cell and lazy_static.

cc @Jarema , we okay with bumping minimal to 1.8.x?

@Jarema
Copy link
Member

Jarema commented Sep 4, 2024

Honestly I would avoid bumping to the latest release without a good justification, and this does not look like one (however I like the idea of uzing LazyCell). Unless we bump it just for the server wrapper.

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.

3 participants