Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Fix for the rate limiting problem #441

Merged
merged 4 commits into from
Nov 14, 2023
Merged

Fix for the rate limiting problem #441

merged 4 commits into from
Nov 14, 2023

Conversation

ltworf
Copy link
Owner

@ltworf ltworf commented Nov 10, 2023

This avoids to fetch all the channels for the history and just obtains
the joined ones.

Closes: #440

@ltworf ltworf mentioned this pull request Nov 10, 2023
In environments with too many channels, getting them gets rate limited.

With this change, history and autojoin list only fetch the list of joined channels.

The full list is still fetched when /list runs or when parsing messages which refer to
channels which we haven't joined.

In those cases, errors are ignored and the list of whatever was obtained is returned, so that
hopefully the needed channel was already fetched.

Closes: #440
@ltworf ltworf merged commit 6fe78dd into master Nov 14, 2023
3 checks passed
@ltworf ltworf deleted the many_channels branch November 14, 2023 17:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

exception on ratelimiting
1 participant