Browse Source

mongo tail

master
zeus 4 years ago
parent
commit
f22ce860b5
  1. 8
      swarmlab-app/src/run/app.js

8
swarmlab-app/src/run/app.js

@ -369,7 +369,13 @@ io.origins('*:*') // for latest version
function onCollection(err, collection) { function onCollection(err, collection) {
var cursor = collection.find({}, { tailable: true, awaitdata: true }), let options = { tailable: true,
awaitData: true,
numberOfRetries: -1,
tailableRetryInterval: 500
};
//collection.find().cursor(options);
var cursor = collection.find({}, options),
cursorStream = cursor.stream(), cursorStream = cursor.stream(),
itemsProcessed = 0; itemsProcessed = 0;

Loading…
Cancel
Save