Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

nonce_manager: remove current nonce load when initialized #2013

Merged
merged 1 commit into from
Jan 5, 2023
Merged

nonce_manager: remove current nonce load when initialized #2013

merged 1 commit into from
Jan 5, 2023

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Jan 5, 2023

Motivation

If nonce was just initialized, no need for store and load.

Solution

Just return the stored value without load.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

If nonce was just initialized, no need for store and load.
Just return the stored value without load.

Signed-off-by: Gyuho Lee <[email protected]>
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

fair, even though this is the constructor, this gets rid of an atomic load

@gakonst gakonst merged commit 3ed83d5 into gakonst:master Jan 5, 2023
@gakonst
Copy link
Owner

gakonst commented Jan 5, 2023

thanks! helpful.

@gyuho the nonce manager has been a bit reliably flaky lately in CI...do you mind taking a closer look? would be really helpful to make this work reliably.

@gyuho
Copy link
Contributor Author

gyuho commented Jan 5, 2023

the nonce manager has been a bit reliably flaky lately in CI...do you mind taking a closer look? would be really helpful to make this work reliably.

Sure, let me see if I can help!

@gyuho gyuho deleted the nonce branch January 5, 2023 09:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants