mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-15 01:12:30 +02:00
read poolsize from config
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
var connString = 'mongodb://'+ nconf.get('mongo:host') + ':' + nconf.get('mongo:port') + '/' + nconf.get('mongo:database');
|
||||
var connOptions = {
|
||||
server: {
|
||||
poolSize: 10
|
||||
poolSize: nconf.get('mongo:poolSize') || 10
|
||||
}
|
||||
};
|
||||
mongoClient.connect(connString, connOptions, function(err, _db) {
|
||||
|
||||
Reference in New Issue
Block a user