Skip to content

Commit

Permalink
Fix option name in README
Browse files Browse the repository at this point in the history
There appear to be a discrepancy between the two code examples for `Rack::Throttle::Rules`: the first one uses `rules` and the second `limits`. I did not find any option named `limit` in `Rack::Throttle::Rules`, so I updated the README.
  • Loading branch information
Spone authored Mar 1, 2023
1 parent 445cdcf commit ba33b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Rules are checked in this order:
It is possible to set the time window for this strategy to: `:second` (default), `:minute`, `:hour` or `:day`, to change the check interval to these windows.

```ruby
use Rack::Throttle::Rules, limits: limits, time_window: :minute
use Rack::Throttle::Rules, rules: rules, time_window: :minute
```


Expand Down

0 comments on commit ba33b00

Please sign in to comment.