From c96a9e9d3b165b722ba00c787f2a2acb82d93e44 Mon Sep 17 00:00:00 2001 From: DeltaXWizard <33706469+deltaxwizard@users.noreply.github.com> Date: Sun, 1 May 2022 16:35:26 -0400 Subject: [PATCH] fix: Fix per-route ratelimit call-later implementation. --- interactions/api/http/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interactions/api/http/request.py b/interactions/api/http/request.py index b3aebad94..a86e5ebc7 100644 --- a/interactions/api/http/request.py +++ b/interactions/api/http/request.py @@ -190,7 +190,7 @@ async def request(self, route: Route, **kwargs) -> Optional[Any]: log.warning( f"The HTTP client has exhausted a per-route ratelimit. Locking route for {reset_after} seconds." ) - self._loop.call_later(reset_after, _limiter.release_lock()) + self._loop.call_later(reset_after, _limiter.release_lock) log.debug(f"RETURN {response.status}: {dumps(data, indent=4, sort_keys=True)}")