Skip to content

Commit

Permalink
p-throttle@4
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Jun 28, 2021
1 parent 874ac69 commit cec4f4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"luxon": "^1.3.0",
"object-scan": "^13.0.0",
"p-retry": "^4.1.0",
"p-throttle": "^3.1.0",
"p-throttle": "^4.1.1",
"pinkie-promise": "^2.0.1",
"qs": "^6.6.0",
"slugg": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion throttle.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const withThrottling = (profile, limit = 5, interval = 1000) => {

return {
...profile,
request: throttle(request, limit, interval)
request: throttle({limit, interval})(request)
}
}

Expand Down

0 comments on commit cec4f4d

Please sign in to comment.