Skip to content

Commit

Permalink
Pluralize config.delayBetweenRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Oct 30, 2017
1 parent 1321116 commit 5c58916
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Your Algolia App ID.

Your generated Algolia API key.

#### delayBetweenRequest: Integer
#### delayBetweenRequests: Integer

Simple delay between each requests made to the website in milliseconds.

Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

}
},
"delayBetweenRequest": 100,
"delayBetweenRequests": 100,
"selectors": {
"title": "title",
"image": "meta[property=\"og:image\"]",
Expand Down
2 changes: 1 addition & 1 deletion lib/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ module.exports = (data, cb) => {

req.on('error', (e) => callback(e));

setTimeout(() => req.end(), config.delayBetweenRequest);
setTimeout(() => req.end(), config.delayBetweenRequests || config.delayBetweenRequest || 0);
};

queue.push(fetch);
Expand Down

0 comments on commit 5c58916

Please sign in to comment.