mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Fix bug/typo in 6d1600f
This commit is contained in:
parent
e0c0c163ae
commit
52d8d69d90
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ class TokenBucket {
|
|||
// Removes all tokens, and will refill the next token msNextAvail
|
||||
// millis from now. After it's refilled, resumes normal refill rate.
|
||||
setNextAvail(msNextAvail) {
|
||||
this.tokens = 0
|
||||
this._tokens = 0
|
||||
this._msNextRefill = Date.now() + msNextAvail
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue