Skip to content

Commit 6e07cc0

Browse files
committed
feat(http): implement rate-limit handling with auto-retry (#11)
1 parent 40b69cf commit 6e07cc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_rate_limit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def _client(self, max_retries: int = DEFAULT_MAX_RETRIES) -> AsyncHTTPClient:
283283
)
284284

285285
def _run(self, coro):
286-
return asyncio.get_event_loop().run_until_complete(coro)
286+
return asyncio.run(coro)
287287

288288
# -- async retries on 429 then succeeds ---------------------------------
289289

0 commit comments

Comments
 (0)