Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-thorsell committed Jun 14, 2023
1 parent 1038d8c commit 2e240a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nextguild/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ def __init__(self, token: str) -> None:
self.cache = {}
self._message_handlers = []

asyncio.run(self.check_rate_limit())
#asyncio.run(self.check_rate_limit())

async def check_rate_limit(self):
while True:
try:
response = await self._send_request('GET', self.base_url)
response = await self.request('GET', self.base_url)
if response.status == 429:
retry_after = response.headers.get('Retry-After')
if retry_after:
Expand Down

0 comments on commit 2e240a0

Please sign in to comment.