-
Notifications
You must be signed in to change notification settings - Fork 533
RUBY-3375 CSOT for CSFLE #2868
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
RUBY-3375 CSOT for CSFLE #2868
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.
Really great! Just noted one bit of duplicated code that could be split out, but otherwise, 💯
| context&.check_timeout! | ||
| if context&.has_timeout? | ||
| ::Timeout.timeout(context.remaining_timeout_sec, Error:TimeoutError) do | ||
| Net::HTTP.start(uri.hostname, uri.port, use_ssl: false) do |http| |
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.
These three lines are duplicated below -- could be good to pull them out into e.g. fetch_response_without_timeout or something.
No description provided.