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

fix using ServerPools with MOCK_* strategy #1125

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Conversation

dingensundso
Copy link

This fixes #1007

When using ServerPool's the Server to use is checked with check_availability. Since neither the Server nor the ServerPool know about the chosen connection strategy, we can just override the check_availability function when creating the Connection with a MOCK_* strategy.

Fixes cannatag#1007

When using ServerPool's the Server to use is checked with
check_availability. Since neither the Server nor the ServerPool know
about the chosen connection strategy, we can just override the
check_availability function when creating the Connection with a MOCK_*
strategy.
@cannatag cannatag merged commit d5451f8 into cannatag:dev Mar 19, 2024
@cannatag
Copy link
Owner

Thanks!

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.

Connection Strategy MOCK_* isn't honored when using ServerPool
2 participants