Skip to content

Conversation

ClintHaerinck
Copy link
Contributor

Some code to reconnect when 'useUnifiedTopology': false.

When 'useUnifiedTopology': true, this should be built-in

@whyisjake

This comment has been minimized.

1 similar comment
@whyisjake

This comment has been minimized.

@codecov-io
Copy link

Codecov Report

Merging #295 into master will decrease coverage by 0.94%.
The diff coverage is 40%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
lib/manager.js 92.9% <40%> (-2.69%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6fe6dd4...4dd9966. Read the comment docs.

Copy link
Collaborator

@mathieudutour mathieudutour left a 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 () {
Copy link
Collaborator

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?

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.

4 participants