forked from supakeen/pinnwand
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass remote_ip instead of entire request object to should_be_ratelimited
This is done mainly because it'll make unit testing the function alot easier Also, passing the entire object is beneficial when multiple attributes are needed, which is not needed here.
- Loading branch information
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters