-
-
Save oinant/d52f2e5b912b89171a43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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