-
Notifications
You must be signed in to change notification settings - Fork 83
Throttle bulk code issuance using server ratelimiter config #1128
Conversation
I would prefer this approach, but you don't need to peek into the limiter, look at the response headers. They'll include all the data you need 👍 |
I just saw that we have |
one consideration with the consuming all of the realm's quota - it makes it so that online code distribution won't work during this. probably not a big deal |
@@ -336,7 +336,7 @@ You can expect the following responses from this API: | |||
|
|||
- `412` - The client requested a precondition that cannot be satisfied. | |||
|
|||
- `429` - The client is rate limited. Check the `X-Retry-After` header to |
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 no x-
for retry-after
https://github.com/sethvargo/go-limiter/blob/86d882305d36ae8c59138bc9a93b3599f0b70936/httplimit/middleware.go#L28
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.
Why would I remember my own code? 😝
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sethvargo, whaught The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue #1061
Proposed Changes
Release Note