Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,17 +335,6 @@ def set_rate_limit_data(limit, remaining, reset):
except (ValueError, TypeError) as e:
print(f"Error caching rate limit data: {e}")

def get_current_rate_limit():
"""
Returns the current cached GitHub rate limit status for inclusion in
API responses to the frontend.
"""
global _rate_limit_cache
return {
'limit': _rate_limit_cache['limit'],
'remaining': _rate_limit_cache['remaining'],
'reset': _rate_limit_cache['reset']
}
# Export cache dict for rate limit handler access
def get_rate_limit_cache():
"""Get the rate limit cache dict"""
Expand Down