-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
WFE: Two changes to NewRegistration key-value rate limits #7258
Conversation
28ae482
to
1c908ce
Compare
1c908ce
to
7ad61fd
Compare
9d21e51
to
5d19c16
Compare
5d19c16
to
5f32b90
Compare
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 with one optional improvement.
defer func() { | ||
if !newRegistrationSuccessful { | ||
go wfe.refundNewAccountLimits(ctx, ip) | ||
if !newRegistrationSuccessful && !errIsRateLimit { |
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.
I know you didn't touch the newRegistrationSuccessful
bool in this PR, so feel free to ignore me, but could this become
if err != nil && !errors.Is(err, berrors.RateLimit) {
? Rather than carrying around these two bools, I think the conditional can be computed here from variables we already have access to.
Make NewRegistration more consistent with the implementation in NewOrder (#7201):
Part of #5545