Skip to content

Commit

Permalink
Merge branch 'master' of github.com:natesilva/p-ratelimit
Browse files Browse the repository at this point in the history
  • Loading branch information
natesilva committed Oct 23, 2017
2 parents 3fbe3f0 + 754dfdc commit 81c82fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const limit = pRateLimit({
interval: 1000, // 1000 ms == 1 second
rate: 30, // 30 API calls per interval
concurrency: 10, // no more than 10 running at once
maxDelay: 2000 // an API call delayed > 2 sec is rejected
});

async function main() {
Expand Down

0 comments on commit 81c82fb

Please sign in to comment.