diff options
Diffstat (limited to 'discord/pylon.lua')
| -rw-r--r-- | discord/pylon.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/pylon.lua b/discord/pylon.lua index 358fd8f..15a1418 100644 --- a/discord/pylon.lua +++ b/discord/pylon.lua @@ -47,7 +47,7 @@ function Discord._req(self, url, payload) self.log:warn("getting 429'd, waiting",rl_wait) cqueues.sleep(rl_wait) goto again - elseif rl_rem < 5 then + elseif rl_rem <= 3 then local wait = rl_wait -- or rl_wait/(rl_rem+1)? their algorithm is mysterious self.log:info("ratelimit limit getting low ",rl_rem,", waiting",wait) if wait>5 then self.log:warn("isn't",wait,"a little long to be waiting?") end |
