Skip to content
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

CLOUDP-279538 Unify http transport #3403

Merged
merged 2 commits into from
Nov 21, 2024
Merged

CLOUDP-279538 Unify http transport #3403

merged 2 commits into from
Nov 21, 2024

Conversation

fmenezes
Copy link
Collaborator

@fmenezes fmenezes commented Nov 20, 2024

Proposed changes

Unify http transport

Jira ticket: CLOUDP-279538

Closes #[issue number]

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • I have updated test/README.md (if an e2e test has been added)
  • I have run make fmt and formatted my code

Further comments

@fmenezes fmenezes marked this pull request as ready for review November 20, 2024 12:35
@fmenezes fmenezes requested a review from a team as a code owner November 20, 2024 12:35
jeroenvervaeke
jeroenvervaeke previously approved these changes Nov 20, 2024
Comment on lines 36 to 42
func Default() *http.Transport {
return newTransport(timeout)
}

func Telemetry() *http.Transport {
return newTransport(telemetryTimeout)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could these be singleton? the difference right now with this approach is that there use to be a single instance of transport while now you'll create multiple ones

Copy link
Collaborator

@gssbzn gssbzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@fmenezes fmenezes merged commit b35fb30 into master Nov 21, 2024
18 of 20 checks passed
@fmenezes fmenezes deleted the CLOUDP-279538 branch November 21, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants