Skip to content

Commit

Permalink
feat: set default serverSelectionTimeoutMS to 9s and heartbeatFrequen…
Browse files Browse the repository at this point in the history
…cyMS to 3s
  • Loading branch information
titanism committed Jan 31, 2023
1 parent f6bb81f commit 091e88b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ class Mongoose {
logger: console,
hideMeta: 'hide_meta',
bindEvents: true,
mongo: {},
mongo: {
options: {
serverSelectionTimeoutMS: 9000,
heartbeatFrequencyMS: 3000
}
},
strict: true,
strictQuery: false
},
Expand Down

0 comments on commit 091e88b

Please sign in to comment.