Skip to content

Commit

Permalink
fix: re-enable throttling plugin (#2224)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jun 8, 2022
1 parent e2cf78a commit 124a9f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { Octokit as OctokitCore } from "@octokit/core";
import { paginateRest } from "@octokit/plugin-paginate-rest";
import { restEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
import { retry } from "@octokit/plugin-retry";
// import { throttling } from "@octokit/plugin-throttling";
import { throttling } from "@octokit/plugin-throttling";

import { VERSION } from "./version";

export const Octokit = OctokitCore.plugin(
restEndpointMethods,
paginateRest,
retry
// throttling
retry,
throttling
).defaults({
userAgent: `octokit-rest.js/${VERSION}`,
throttle: {
Expand Down
1 change: 1 addition & 0 deletions test/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ describe("App", () => {
request: {
fetch: mock,
},
throttle: { enabled: false },
}),
});
});
Expand Down

0 comments on commit 124a9f0

Please sign in to comment.