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

Reap connections on Pool drop #103

Closed
wants to merge 1 commit into from

Conversation

arthurprs
Copy link

Minimal fix for #99

@arthurprs arthurprs marked this pull request as draft May 9, 2020 10:27
M: ManageConnection,
{
fn drop(&mut self) {
reap_connections(&self.0, true);
Copy link
Owner

Choose a reason for hiding this comment

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

Calling into reap_connections will immediately try to replace the dropped connections with new ones, and in any case, dropping the pool should immediately drop the list of connections in its internal state anyway.

@arthurprs
Copy link
Author

Sorry. this PR doesn't make sense. A good reminder to myself to not send any PRs before the first cup of ☕

@arthurprs arthurprs closed this May 9, 2020
@arthurprs arthurprs deleted the reap_on_drop branch May 9, 2020 13:09
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