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(connection): add stub implementation of doClose to base connection class #13157

Merged
merged 2 commits into from
Mar 12, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #12971

Summary

Quick detail that shouldn't affect any prod code. But #12971 does point out that our base connection class doesn't have a doClose() method, but calls this.doClose(). The built-in MongoDB driver layer does have a doClose(), but there's no indication to anyone building a new driver that they need to implement that, and if you instantiate a new connection directly (which you shouldn't do) you'll get an error about doClose() not being a function.

Examples

@vkarpov15 vkarpov15 merged commit 779c140 into 6.x Mar 12, 2023
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-12971 branch March 12, 2023 17:29
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.

None yet

2 participants