-
Notifications
You must be signed in to change notification settings - Fork 185
Adding notifications support for various lifecycle conditions #595
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
base: main
Are you sure you want to change the base?
Conversation
| original_env[:call_attempt] += 1 | ||
| else | ||
| original_env[:call_attempt] = 1 | ||
| end |
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.
Can we have a test for values of these counts?
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.
ack, looking into it
| threshold: response_env[:response_headers] ? response_env[:response_headers][:x_rate_limit_remaining] : nil, | ||
| limit: response_env[:response_headers] ? response_env[:response_headers][:x_rate_limit] : nil, | ||
| reset: response_env[:response_headers] ? response_env[:response_headers][:x_rate_limit_reset] : nil | ||
| }) |
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.
threshold, limit, and reset values don’t have any tests.
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.
ack, looking into it
| threshold: response_env[:response_headers] ? response_env[:response_headers][:x_rate_limit_remaining] : nil, | ||
| limit: response_env[:response_headers] ? response_env[:response_headers][:x_rate_limit] : nil, | ||
| reset: response_env[:response_headers] ? response_env[:response_headers][:x_rate_limit_reset] : nil | ||
| }) |
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 think the header keys will be with hyphens, not underscores?
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.
Ack, looking into it
No description provided.