Skip to content

Commit

Permalink
Minor tweaks to rate limiting, adding a test
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Aug 5, 2014
1 parent fd00b13 commit 79136e4
Show file tree
Hide file tree
Showing 12 changed files with 930 additions and 67 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ Rate limiting is controlled by configuration, and is disabled by default. Rate l
{
"rate": {
"enabled": true,
"limit": 1000, /* Maximum requests before `reset` */
"reset": 3600, /* TTL in seconds */
"limit": 450, /* Maximum requests allowed before `reset` */
"reset": 900, /* TTL in seconds */
"status": 429, /* Optional HTTP status */
"message": "Too many requests" /* Optional error message */
}
Expand Down
4 changes: 2 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
},
"rate": {
"enabled": false,
"limit": 1000,
"reset": 3600,
"limit": 450,
"reset": 900,
"status": 429,
"message": "Too many requests"
}
Expand Down
Loading

0 comments on commit 79136e4

Please sign in to comment.