lib/queue/request-queue.js
function init (options, crawlCallback, recrawlCallback, endCallback, proxies) {

      requestQueue = require(options.queueModuleName);
      requestQueue.init(options, onUrlToCrawl, endCallback);
      onCrawl = crawlCallback;
      onRecrawl = recrawlCallback;

      proxyList = proxies;
  }
function init (options, crawlCallback, recrawlCallback, endCallback, proxies) {

      requestQueue = require(options.queueModuleName);
      requestQueue.init(options, onUrlToCrawl, endCallback);
      onCrawl = crawlCallback;
      onRecrawl = recrawlCallback;

      proxyList = proxies;
  }
function init ( options , crawlCallback , recrawlCallback , endCallback , proxies ) { requestQueue = require ( options . queueModuleName ) ; requestQueue . init ( options , onUrlToCrawl , endCallback ) ; onCrawl = crawlCallback ; onRecrawl = recrawlCallback ; proxyList = proxies ; }
Init the Queue

@param The number of tasks/connections that the request queue can run in parallel
@param The callback executed when a resource has been crawled
@param The callback executed when a resource has been recrawl (probably due to an error)
@param The callback executed when all tasks (urls to crawl) are completed
@param The proxies to used when making http requests
Init the Queue