Skip to content

Commit

Permalink
fix - Update mongodb reconnect tries(cnodejs#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Debiancc committed Oct 17, 2018
1 parent 3542994 commit c926985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module.exports = appInfo => {
url: process.env.EGG_MONGODB_URL || 'mongodb://127.0.0.1:27017/egg_cnode',
options: {
server: { poolSize: 20 },
reconnectTries: Number.MAX_VALUE,
reconnectTries: 10,
reconnectInterval: 500,
},
};
Expand Down

0 comments on commit c926985

Please sign in to comment.