From d4cfcb5d52412395dd14eb5fc5420552230c2a21 Mon Sep 17 00:00:00 2001 From: DevilXD <4180725+DevilXD@users.noreply.github.com> Date: Sat, 2 Nov 2024 19:10:54 +0100 Subject: [PATCH] Reduce GQL rate limit capacity two fold --- twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitch.py b/twitch.py index 37a1e133..c375c7e2 100644 --- a/twitch.py +++ b/twitch.py @@ -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=1) # Client type, session and auth self._client_type: ClientInfo = ClientType.ANDROID_APP self._session: aiohttp.ClientSession | None = None