-
Notifications
You must be signed in to change notification settings - Fork 879
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
Tokens fail to retry due to empty nonce #4146
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a couple of comments that may turn out to be nothing.
@@ -53,12 +53,19 @@ void RefillTokens::Refill( | |||
|
|||
public_key_ = public_key; | |||
|
|||
nonce_ = ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems unnecessary in the constructor, but fine by me if you'd just like to be explicit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the nonce to reset if starting without the need to retry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, I misread this as being the class's constructor. Sorry!
RequestSignedTokens(); | ||
} | ||
|
||
void RefillTokens::RetryGettingSignedTokens() { | ||
BLOG(INFO) << "Retry getting signed tokens"; | ||
|
||
if (nonce_.empty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any danger of endlessly retriggering this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is, however right now we have no retry count so I will raise a ticket
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failed with unrelated error (network audit) |
Fixes brave/brave-browser#7222
Requires: #4106
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
See brave/brave-browser#7222
Reviewer Checklist:
After-merge Checklist:
changes has landed on.