Skip to content

Commit

Permalink
fix(package): Update bottleneck to the latest version 馃殌 (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and JasonEtco committed Feb 3, 2018
1 parent c8231b5 commit 2f3f434
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/github.js
Expand Up @@ -29,7 +29,7 @@ async function paginate (octokit, responsePromise, callback = defaultCallback) {

function EnhancedGitHubClient (options) {
const octokit = Octokit(options)
const limiter = new Bottleneck(1, 1000)
const limiter = new Bottleneck({ maxConcurrent: 1, minTime: 1000 })
const logger = options.logger
const noop = () => Promise.resolve()

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -24,7 +24,7 @@
"license": "ISC",
"dependencies": {
"@octokit/rest": "14.0.8",
"bottleneck": "^1.16.0",
"bottleneck": "^2.0.0",
"bunyan": "^1.8.12",
"bunyan-format": "^0.2.1",
"bunyan-sentry-stream": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion test/github.test.js
Expand Up @@ -14,7 +14,7 @@ describe('EnhancedGitHubClient', () => {
github = new EnhancedGitHubClient({ logger })

// Set a shorter limiter, otherwise tests are _slow_
github.limiter = new Bottleneck(1, 1)
github.limiter = new Bottleneck({ maxConcurrent: 1, minTime: 1 })
})

describe('paginate', () => {
Expand Down

0 comments on commit 2f3f434

Please sign in to comment.