Skip to content

Fix rate limit exceeded error#19

Open
jcul wants to merge 1 commit into
zach-snell:masterfrom
jcul:extra-rate-limit
Open

Fix rate limit exceeded error#19
jcul wants to merge 1 commit into
zach-snell:masterfrom
jcul:extra-rate-limit

Conversation

@jcul

@jcul jcul commented Jan 6, 2020

Copy link
Copy Markdown

In getHistory we do a sleep after each 100 messages to avoid exceeding slack's API limit.

But the sleep is only done after we get the first 100 messages, so if we have multiple channels in a row with less than 100 messages then the sleep is never done and we may exceed 1 request per second.

than 100 messages then the sleep is never done and we may exceed 1
request per second.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants