File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
extensions/ql-vscode/src/databases Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import type { BaseLogger } from "../common/logging";
66import { AppOctokit } from "../common/octokit" ;
77import type { ProgressCallback } from "../common/vscode/progress" ;
88import { UserCancellationException } from "../common/vscode/progress" ;
9+ import { EndpointDefaults } from "@octokit/types" ;
910
1011export async function getCodeSearchRepositories (
1112 query : string ,
@@ -54,14 +55,17 @@ async function provideOctokitWithThrottling(
5455 const octokit = new MyOctokit ( {
5556 auth,
5657 throttle : {
57- onRateLimit : ( retryAfter : number , options : any ) : boolean => {
58+ onRateLimit : ( retryAfter : number , options : EndpointDefaults ) : boolean => {
5859 void logger . log (
5960 `Rate Limit detected for request ${ options . method } ${ options . url } . Retrying after ${ retryAfter } seconds!` ,
6061 ) ;
6162
6263 return true ;
6364 } ,
64- onSecondaryRateLimit : ( _retryAfter : number , options : any ) : void => {
65+ onSecondaryRateLimit : (
66+ _retryAfter : number ,
67+ options : EndpointDefaults ,
68+ ) : void => {
6569 void logger . log (
6670 `Secondary Rate Limit detected for request ${ options . method } ${ options . url } ` ,
6771 ) ;
You can’t perform that action at this time.
0 commit comments