File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ export default function setupRateLimiter(
2020 switch ( selection ) {
2121 case 'TOKEN_BUCKET' :
2222 // todo validate options
23- //@ts -ignore
23+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24+ // @ts -ignore
2425 return new TokenBucket ( options . bucketSize , options . refillRate , client ) ;
2526 break ;
2627 case 'LEAKY_BUCKET' :
@@ -33,7 +34,8 @@ export default function setupRateLimiter(
3334 throw new Error ( 'Sliding Window Log has not be implemented.' ) ;
3435 break ;
3536 case 'SLIDING_WINDOW_COUNTER' :
36- //@ts -ignore
37+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
38+ // @ts -ignore
3739 return new SlidingWindowCounter ( options . windowSize , options . capacity , client ) ;
3840 break ;
3941 default :
You can’t perform that action at this time.
0 commit comments