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:
parent
d1048413f8
commit
e6700d2089
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user