Skip to content

Instantly share code, notes, and snippets.

@oinant
Last active August 30, 2015 11:46
Show Gist options
  • Save oinant/d52f2e5b912b89171a43 to your computer and use it in GitHub Desktop.
Save oinant/d52f2e5b912b89171a43 to your computer and use it in GitHub Desktop.
var Merger = require("../../merger.js");
function mergeCrawlerResults() {
this.execute = function(context, eventBus) {
var taskCompleteCallback = function(data) {
context.crawlerMergeResults = data;
eventBus.taskDone();
}
var merger = new Merger(taskCompleteCallback);
merger.merge(context.crawledNewLinks);
}
}
module.exports = mergeCrawlerResults;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment