Browse Source

Fix bucket key format

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

2
discord/http.py

@ -673,7 +673,7 @@ class HTTPClient:
fmt = '%s has found its initial rate limit bucket hash (%s).'
_log.debug(fmt, route_key, new_bucket_hash)
self._bucket_hashes[route_key] = new_bucket_hash
ratelimit.key = new_bucket_hash + route.major_parameters
ratelimit.key = f'{new_bucket_hash}:{route.major_parameters}'
self._buckets[ratelimit.key] = ratelimit
# Global rate limit 429 wont have ratelimit headers (also can't tell if it's one-shot)

Loading…
Cancel
Save