Skip to content

Commit

Permalink
Increase the GQL rate limit 4-fold
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Sep 20, 2024
1 parent 0105be7 commit 143252f
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=20, window=1)
self._qgl_limiter = RateLimiter(capacity=10, window=2)
# Client type, session and auth
self._client_type: ClientInfo = ClientType.ANDROID_APP
self._session: aiohttp.ClientSession | None = None
Expand Down

0 comments on commit 143252f

Please sign in to comment.