File tree Expand file tree Collapse file tree
lib/api/apiUtils/rateLimit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function cleanupJob(log, options = {}) {
1010 log . debug ( 'Rate limit cleanup completed' , { expiredConfigs, expiredBucketOwners } ) ;
1111 }
1212
13- cleanupTimer = setTimeout ( ( ) => cleanupJob ( log ) , rateLimitCleanupInterval ) ;
13+ cleanupTimer = setTimeout ( ( ) => cleanupJob ( log , options ) , rateLimitCleanupInterval ) ;
1414 if ( ! options . skipUnref ) {
1515 cleanupTimer . unref ( ) ;
1616 }
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ function getCachedRateLimitConfig(request) {
144144
145145function buildRateChecksFromConfig ( resourceClass , resourceId , limitConfig ) {
146146 const checks = [ ] ;
147- if ( limitConfig . RequestsPerSecond ?. Limit > 0 ) {
147+ if ( limitConfig ? .RequestsPerSecond ?. Limit > 0 ) {
148148 checks . push ( {
149149 resourceClass,
150150 resourceId,
You can’t perform that action at this time.
0 commit comments