jhurliman/node-rate-limiter

removeTokens 1st parameter documentation

Closed this issue · 1 comments

Documentation does not say anything. The 1st parameter of the removeTokens is the number of requests to be removed?

limiter.removeTokens(1, function(err, remainingRequests)

This is documented in the JSDoc:

* @param count The number of tokens to remove.