mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
feat: mongodb driver 4.x (#9832)
* feat: mongodb driver 4.x * feat: up dbsearach
This commit is contained in:
committed by
GitHub
parent
6b34065f2a
commit
07adb49e7f
@@ -44,10 +44,9 @@ connection.getConnectionString = function (mongo) {
|
||||
connection.getConnectionOptions = function (mongo) {
|
||||
mongo = mongo || nconf.get('mongo');
|
||||
const connOptions = {
|
||||
poolSize: 10,
|
||||
maxPoolSize: 10,
|
||||
minPoolSize: 3,
|
||||
connectTimeoutMS: 90000,
|
||||
useNewUrlParser: true,
|
||||
useUnifiedTopology: true,
|
||||
};
|
||||
|
||||
return _.merge(connOptions, mongo.options || {});
|
||||
|
||||
Reference in New Issue
Block a user