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

Extract methods for easier reuse/overriding #1788

Merged
merged 2 commits into from
Jul 17, 2024
Merged

Conversation

jguerra
Copy link
Contributor

@jguerra jguerra commented Jul 16, 2024

No description provided.

@@ -281,6 +273,27 @@ protected void tryMakingNewConnection(
}
}

protected boolean checkConnectionLimit(Promise<PooledConnection> promise) {
Copy link
Contributor

@gavinbunney gavinbunney Jul 17, 2024

Choose a reason for hiding this comment

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

Maybe s/checkConnectionLimit/withinConnectionLimit ? Reads a bit nicer at the callsite

if (!withinConnectionLimit(promise)) {
...
}

or even isWithinConnectionLimit to mimic the waterline func below

@jguerra jguerra merged commit d6b189a into master Jul 17, 2024
5 checks passed
argha-c pushed a commit that referenced this pull request Sep 10, 2024
* Extract methods for easier reuse/overriding

* PR feedback
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