File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/variant-analysis/gh-api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,23 +28,15 @@ export async function getCodeSearchRepositories(
2828 const octokit = new MyOctokit ( {
2929 auth,
3030 throttle : {
31- onRateLimit : (
32- retryAfter : number ,
33- options : any ,
34- octokit : Octokit ,
35- ) : boolean => {
36- octokit . log . warn (
31+ onRateLimit : ( retryAfter : number , options : any ) : boolean => {
32+ void showAndLogWarningMessage (
3733 `Request quota exhausted for request ${ options . method } ${ options . url } . Retrying after ${ retryAfter } seconds!` ,
3834 ) ;
3935
4036 return true ;
4137 } ,
42- onSecondaryRateLimit : (
43- _retryAfter : number ,
44- options : any ,
45- octokit : Octokit ,
46- ) : void => {
47- octokit . log . warn (
38+ onSecondaryRateLimit : ( _retryAfter : number , options : any ) : void => {
39+ void showAndLogWarningMessage (
4840 `SecondaryRateLimit detected for request ${ options . method } ${ options . url } ` ,
4941 ) ;
5042 } ,
You can’t perform that action at this time.
0 commit comments