Skip to content

Conversation

@comandeo-mongo
Copy link
Contributor

No description provided.

@comandeo-mongo comandeo-mongo marked this pull request as ready for review May 8, 2024 15:14
@comandeo-mongo comandeo-mongo requested a review from jamis May 8, 2024 15:14
Copy link
Contributor

@jamis jamis left a 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|
Copy link
Contributor

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.

@comandeo-mongo comandeo-mongo requested a review from jamis May 10, 2024 07:51
@comandeo-mongo comandeo-mongo merged commit bba73e9 into mongodb:csot May 13, 2024
@comandeo-mongo comandeo-mongo deleted the 3375-csot-for-csfle branch May 13, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants