-
Notifications
You must be signed in to change notification settings - Fork 156
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: replace instanceof Promise checks with thennable checks #114
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, if the existing tests pass I'm fine with merging. This change is more to protect us in case mysql
supports providing a customer Promise
implementation in the future (if it doesn't already).
@M-TGH |
We seem to be hitting a situation where connection is Full exception:
|
@darcoli |
Issue #, if available: No issue, came up in #98 (comment).
Description of changes: Replaces 2
instanceof Promise
checks to instead check if .then is a function.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
If preferred I can merge this into the feat/support-pool-get-connection branch.
Wasn't too sure on a way to add tests for this, so refrained on adding them for now. Let me know if you have any ideas.