-
Notifications
You must be signed in to change notification settings - Fork 182
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
Feature/reconnect #295
base: master
Are you sure you want to change the base?
Feature/reconnect #295
Conversation
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #295 +/- ##
==========================================
- Coverage 94.87% 93.92% -0.95%
==========================================
Files 6 6
Lines 390 395 +5
==========================================
+ Hits 370 371 +1
- Misses 20 24 +4
Continue to review full report at Codecov.
|
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.
That sounds sensible. Could you add some docs and tests for it?
* @return {Promise} | ||
*/ | ||
|
||
Manager.prototype.reconnect = function () { |
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.
could you add an fn
argument to be consistent with the open
method?
Some code to reconnect when 'useUnifiedTopology': false.
When 'useUnifiedTopology': true, this should be built-in