File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import { default as readlineSync } from 'readline-sync';
1515import * as fs from 'fs' ;
1616
1717import AWS from 'aws-sdk' ;
18- import { sleep } from './utils' ;
1918
2019const counters = {
2120 nrOfPlaceholderIssues : 0 ,
@@ -68,16 +67,17 @@ const githubApi = new MyOctokit({
6867 console . log (
6968 `Request quota exhausted for request ${ options . method } ${ options . url } `
7069 ) ;
71- await sleep ( 60000 ) ;
70+ console . log ( `Retrying after ${ retryAfter } seconds!` ) ;
7271 return true ;
7372 } ,
7473 onAbuseLimit : async ( retryAfter , options ) => {
7574 console . log (
7675 `Abuse detected for request ${ options . method } ${ options . url } `
7776 ) ;
78- await sleep ( 60000 ) ;
77+ console . log ( `Retrying after ${ retryAfter } seconds!` ) ;
7978 return true ;
8079 } ,
80+ minimumAbuseRetryAfter : 1000 ,
8181 } ,
8282} ) ;
8383
You can’t perform that action at this time.
0 commit comments