Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from panagorn/master
Browse files Browse the repository at this point in the history
Fix Deprecation Warning for Server Discovery and Monitoring
  • Loading branch information
South-Paw committed Oct 14, 2019
2 parents 80d493a + 67a79a2 commit d05af78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const config = {
// these are the default middleware options, see https://mongoosejs.com/docs/connections.html#options
useNewUrlParser: true,
useCreateIndex: true,
useUnifiedTopology: true
reconnectTries: Number.MAX_VALUE, // Never stop trying to reconnect
reconnectInterval: 500, // Reconnect every 500ms
poolSize: 10, // Maintain up to 10 socket connections
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"debug": "^4.1.1",
"mongoose": "^5.5.15",
"mongoose": "^5.7.4",
"muri": "^1.3.0"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const muri = require('muri');
const defaultMongoOptions = {
useNewUrlParser: true,
useCreateIndex: true,
useUnifiedTopology: true,
reconnectTries: Number.MAX_VALUE, // Never stop trying to reconnect
reconnectInterval: 500, // Reconnect every 500ms
poolSize: 10, // Maintain up to 10 socket connections
Expand Down

0 comments on commit d05af78

Please sign in to comment.