the middle of the idiots
This commit is contained in:
@@ -11,7 +11,6 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
"github.com/google/uuid"
|
||||
"github.com/itsjamie/gin-cors"
|
||||
)
|
||||
|
||||
// SecurityConfig holds security-related configuration
|
||||
@@ -125,8 +124,9 @@ func checkRateLimit(c *gin.Context, maxRequests int) bool {
|
||||
// In a real implementation, this would use Redis or similar to track requests per IP/user
|
||||
// For now, we'll implement a simplified version
|
||||
|
||||
// Get client IP
|
||||
// Get client IP (this would be used in a real implementation)
|
||||
clientIP := c.ClientIP()
|
||||
_ = clientIP // Use the variable to avoid "declared but not used" error
|
||||
|
||||
// For demo purposes, always return true (no actual rate limiting)
|
||||
// In a production environment, you would check against a request counter
|
||||
|
||||
Reference in New Issue
Block a user