Skip to content

Commit

Permalink
throttling in async mode (fixes #1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik committed Jul 5, 2024
1 parent cd73369 commit f93b0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninja/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ async def _run_checks(self, request: HttpRequest) -> Optional[HttpResponse]: #

# Throttling:
if self.throttle_objects:
error = self._check_throttles(request) # type: ignore
error = self._check_throttles(request)
if error:
return error

Expand Down

0 comments on commit f93b0a0

Please sign in to comment.