Skip to content

Commit

Permalink
Reduce GQL rate limit capacity two fold
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Dec 30, 2024
1 parent 1cd408f commit 05ed7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def __init__(self, settings: Settings):
self._mnt_triggers: deque[datetime] = deque()
# NOTE: GQL is pretty volatile and breaks everything if one runs into their rate limit.
# Do not modify the default, safe values.
self._qgl_limiter = RateLimiter(capacity=10, window=1)
self._qgl_limiter = RateLimiter(capacity=5, window=1)
# Client type, session and auth
self._client_type: ClientInfo = ClientType.ANDROID_APP
self._session: aiohttp.ClientSession | None = None
Expand Down

0 comments on commit 05ed7da

Please sign in to comment.