Disable the new pygithub read throttling

It seems a bit excessive and doesn't take into account that
lots of our request hit the cache via etags.
This commit is contained in:
Christoph Reiter 2023-10-16 20:28:22 +02:00
parent d1048413f8
commit e6700d2089

View File

@ -71,6 +71,7 @@ def get_github(write: bool = False) -> Github:
# 100 is the maximum allowed
kwargs['per_page'] = 100
kwargs['timeout'] = sum(REQUESTS_TIMEOUT)
kwargs['seconds_between_requests'] = None
gh = Github(**kwargs)
if auth is None and not write:
print(f"[Warning] Rate limit status: {gh.get_rate_limit().core}", file=sys.stderr)