From 52d8d69d90f6dc2f51a5c0d0ff97c6bdbcea905e Mon Sep 17 00:00:00 2001 From: Christopher Gurnee Date: Wed, 2 Mar 2022 16:39:33 -0500 Subject: [PATCH] Fix bug/typo in 6d1600f --- src/api/pushshift/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/pushshift/index.js b/src/api/pushshift/index.js index bc264b7..da0a193 100644 --- a/src/api/pushshift/index.js +++ b/src/api/pushshift/index.js @@ -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 } }