mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Halve Pushshift requests to 30/min. to avoid 429s
This commit is contained in:
parent
7c935ab666
commit
c83f139ff8
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ class TokenBucket {
|
|||
}
|
||||
}
|
||||
|
||||
const pushshiftTokenBucket = new TokenBucket(1015, 7)
|
||||
const pushshiftTokenBucket = new TokenBucket(2015, 7)
|
||||
|
||||
export const getPost = async threadID => {
|
||||
await pushshiftTokenBucket.waitForToken()
|
||||
|
|
|
|||
Loading…
Reference in a new issue