Skip to content

Commit

Permalink
Use URL WHATWG for *mongoose* (#1554)
Browse files Browse the repository at this point in the history
* Hopefully this will squash some warning messages.
* We still have on legacy URL API call to migrate but waiting a bit

Ref:
* https://mongoosejs.com/docs/connections.html#use-mongo-client

Applies to #1516 

Auto-merge
  • Loading branch information
Martii authored Dec 19, 2018
1 parent 0924e00 commit a32e8bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ var dbOptions = {};
var defaultPoolSize = 5;
if (isPro) {
dbOptions = {
useNewUrlParser: true,
secondaryAcceptableLatencyMS: 15,
poolSize: defaultPoolSize * 3
}
} else {
dbOptions = {
useNewUrlParser: true,
poolSize: defaultPoolSize,
reconnectTries: 30,
reconnectInterval: 1000
Expand Down

0 comments on commit a32e8bc

Please sign in to comment.