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

remove clean connectionCheckout timeout #4274

Draft
wants to merge 23 commits into
base: NODE-6090
Choose a base branch
from

Conversation

baileympearson
Copy link
Contributor

…ver selection### Description

What is changing?

Is there new documentation needed for these changes?

What is the motivation for this change?

Release Highlight

Fill in title or leave empty for no highlight

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

W-A-James and others added 20 commits October 10, 2024 11:51
Co-authored-by: Neal Beeken <[email protected]>
Co-authored-by: Bailey Pearson <[email protected]>
…4243)

Co-authored-by: Warren James <[email protected]>
Co-authored-by: Neal Beeken <[email protected]>
Co-authored-by: Bailey Pearson <[email protected]>
});
}

export function isCSOTTimeoutContext(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Having a method that narrows the base abstraction to a concrete subtype as a required method on the base abstraction breaks the base abstraction. I've moved this to a floating function to keep the abstraction clean.

@@ -180,20 +180,14 @@ export abstract class TimeoutContext {

abstract get maxTimeMS(): number | null;

abstract get serverSelectionTimeout(): Timeout | null;
abstract get timeoutForServerSelection(): Timeout | null;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

half of our timeout methods were timeoutFor<x> and the other half were <x>Timeout. I've aligned them all to timeoutFor<x>.

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.

4 participants