Reduce GQL rate limit capacity two fold

This commit is contained in:
DevilXD committed 2024-11-02 19:10:54 +01:00
1 parent a428c725ac
commit d4cfcb5d52
1 file changed
+1 -1
+1 -1
View File
@@ -431,7 +431,7 @@ class Twitch:
self._mnt_triggers: deque[datetime] = deque() self._mnt_triggers: deque[datetime] = deque()
# NOTE: GQL is pretty volatile and breaks everything if one runs into their rate limit. # NOTE: GQL is pretty volatile and breaks everything if one runs into their rate limit.
# Do not modify the default, safe values. # 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 # Client type, session and auth
self._client_type: ClientInfo = ClientType.ANDROID_APP self._client_type: ClientInfo = ClientType.ANDROID_APP
self._session: aiohttp.ClientSession | None = None self._session: aiohttp.ClientSession | None = None