chore: RateLimiter clean ups

This commit is contained in:
Bobby Wibowo 2022-07-12 10:30:36 +07:00
parent 3ce3547d15
commit 9852dec3d1
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -2,9 +2,10 @@ const { RateLimiterMemory } = require('rate-limiter-flexible')
const ClientError = require('./../utils/ClientError')
class RateLimiter {
rateLimiterMemory
#requestKey
#whitelistedKeys
rateLimiterMemory
constructor (requestKey, options = {}, whitelistedKeys) {
if (typeof options.points !== 'number' || typeof options.duration !== 'number') {