Skip to content

Instantly share code, notes, and snippets.

@oinant
Last active August 30, 2015 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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