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 LazyLock #5716

Merged

Conversation

programskillforverification
Copy link
Contributor

Description

close #5641

Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

Ty!

I think we can remove the one and only OnceLock and replace this with a LazyLock as well :D

@programskillforverification programskillforverification changed the title Replace lazy_static with OnceLock Replace lazy_static with LazyLock Sep 18, 2024
Comment on lines 758 to 759
static MSG: OnceLock<InboundDownwardMessage> = OnceLock::new();
MSG.get_or_init(|| InboundDownwardMessage { sent_at: 1, msg: b"down".to_vec() });
Copy link
Member

Choose a reason for hiding this comment

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

No need at all that this is OnceLock.

Copy link
Member

Choose a reason for hiding this comment

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

@programskillforverification after this is done, we can merge it.

@bkchr bkchr added the T0-node This PR/Issue is related to the topic “node”. label Sep 29, 2024
prdoc/pr_5716.prdoc Outdated Show resolved Hide resolved
@bkchr bkchr added this pull request to the merge queue Sep 30, 2024
Merged via the queue into paritytech:master with commit a8d8596 Sep 30, 2024
216 of 217 checks passed
paritytech-ci pushed a commit that referenced this pull request Oct 1, 2024
# Description

close #5641

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace lazy_static with OnceLock
3 participants