dont pass options

v1.18.x
Barış Soner Uşaklı 7 years ago
parent 9dbe68a9cb
commit 154d7076d9

@ -3,9 +3,9 @@
var mubsub = require('mubsub-nbb'); var mubsub = require('mubsub-nbb');
var db = require('../mongo'); var db = require('../mongo');
const connString = db.getConnectionString(); const connString = db.getConnectionString();
const connOptions = db.getConnectionOptions();
var client = mubsub(connString, connOptions); var client = mubsub(connString);
client.on('error', function (err) { client.on('error', function (err) {
console.error('mongo pubsub error ' + connString, connOptions, err); console.error('mongo pubsub error ' + connString, err);
}); });
module.exports = client.channel('pubsub'); module.exports = client.channel('pubsub');

Loading…
Cancel
Save