Skip to content

Commit

Permalink
refactor: add new line before go code in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3skyw4lker committed Jul 11, 2024
1 parent f6ede57 commit e1dc5dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/middleware/limiter.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ rate = weightOfPreviousWindpw + current window's amount request.
You can also calculate the limit dynamically using the MaxCalculator parameter. It's a function that receives the request's context as a parameter and allow you to calculate a different limit for each request separately.

Example:

```go
app.Use(limiter.New(limiter.Config{
MaxCalculator: func(c fiber.Ctx) int {
Expand Down

0 comments on commit e1dc5dc

Please sign in to comment.