Skip to content

Commit

Permalink
Update github_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider authored Aug 18, 2023
1 parent 56e5fde commit 8a3d7c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions github_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ def check_rate_limits(msg=True, when_slow=False, prefix=""):
_check_rate_limits(GH_RATE_LIMIT[0], GH_RATE_LIMIT[1], GH_RATE_LIMIT[2], msg, when_slow, prefix=prefix)


# Could not find any usage of this function inc cms-bot repo, making it just call api_rate_limits
# Could not find any usage of this function in cms-bot repo, making it just call api_rate_limits
def api_rate_limits_repo(obj, msg=True, when_slow=False, prefix=""):
# global GH_RATE_LIMIT
# GH_RATE_LIMIT = [ int(obj.raw_headers['x-ratelimit-remaining']), int(obj.raw_headers['x-ratelimit-limit']), int(obj.raw_headers['x-ratelimit-reset']) ]
api_rate_limits(msg, when_slow, prefix=prefix)


Expand Down

0 comments on commit 8a3d7c5

Please sign in to comment.