We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7117eb commit c35d0bcCopy full SHA for c35d0bc
ratelimit.py
@@ -24,7 +24,7 @@ async def wrapper(*args, **kwargs):
24
break
25
if req is None:
26
req = kwargs.get("request", None)
27
-
+
28
# If no request found, just call the function
29
30
if inspect.iscoroutinefunction(func):
@@ -46,7 +46,7 @@ async def wrapper(*args, **kwargs):
46
headers={"Retry-After": str(retry_after)},
47
)
48
_STORE[k] = (window_start, count + 1)
49
50
# Call the original function
51
52
return await func(*args, **kwargs)
0 commit comments