mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
try with higher timeout
This commit is contained in:
@@ -100,6 +100,7 @@ mongoModule.getConnectionOptions = function () {
|
||||
reconnectTries: 3600,
|
||||
reconnectInterval: 1000,
|
||||
autoReconnect: true,
|
||||
connectTimeoutMS: 60000,
|
||||
useNewUrlParser: true,
|
||||
};
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
var mubsub = require('mubsub-nbb');
|
||||
var db = require('../mongo');
|
||||
var client = mubsub(db.getConnectionString());
|
||||
var client = mubsub(db.getConnectionString(), db.getConnectionOptions());
|
||||
|
||||
module.exports = client.channel('pubsub');
|
||||
|
||||
@@ -35,7 +35,7 @@ nconf.defaults({
|
||||
|
||||
if (!nconf.get('isCluster')) {
|
||||
nconf.set('isPrimary', 'true');
|
||||
nconf.set('isCluster', 'false');
|
||||
nconf.set('isCluster', 'true');
|
||||
}
|
||||
|
||||
var dbType = nconf.get('database');
|
||||
|
||||
Reference in New Issue
Block a user