diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index e7dfae6..f9a693d 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -374,10 +374,10 @@ function onCollection(err, collection) { numberOfRetries: -1, tailableRetryInterval: 500 }; - var cursor = collection.find().cursor(options).stream(); + var cursor = collection.find({},options).stream(); //var cursor = collection.find({}, options), // cursorStream = cursor.stream(), - // itemsProcessed = 0; + var itemsProcessed = 0; //cursorStream.on('data', function (data) { cursor.on('data', function (data) {