mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 05:55:13 +00:00
limiter update
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
func RateLimiter() fiber.Handler {
|
||||
return limiter.New(limiter.Config{
|
||||
Max: 20,
|
||||
Max: 30,
|
||||
Expiration: 1 * time.Minute,
|
||||
KeyGenerator: func(c *fiber.Ctx) string {
|
||||
if ip := c.Get("X-Real-IP"); ip != "" {
|
||||
|
||||
Reference in New Issue
Block a user