Browse Source

Fix whitespace

pull/10287/head
imp 2 months ago
committed by GitHub
parent
commit
5ec1d8441d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      discord/http.py

2
discord/http.py

@ -392,7 +392,7 @@ class Ratelimit:
self.remaining = self.limit - self.outgoing
self.reset_at = 0.0
def update(self, response: aiohttp.ClientResponse, data: Union[Dict[str, Any], str]) -> bool:
def update(self, response: aiohttp.ClientResponse, data: Union[Dict[str, Any], str]) -> bool:
# Shared scope 429 has longer "reset_at", determined using the retry-after field
limit = int(response.headers['X-Ratelimit-Limit'])
if response.headers.get('X-RateLimit-Scope') == 'shared':

Loading…
Cancel
Save