.HIDE. shit
This commit is contained in:
parent
15559d0be2
commit
ff1d2fa1c3
|
@ -10,7 +10,7 @@ import (
|
||||||
func PeppyMethod(a func(c *gin.Context, db *sql.DB)) gin.HandlerFunc {
|
func PeppyMethod(a func(c *gin.Context, db *sql.DB)) gin.HandlerFunc {
|
||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
rateLimiter()
|
rateLimiter()
|
||||||
perUserRequestLimiter(0, c.Request.Header.Get("X-Real-IP"))
|
perUserRequestLimiter(0, c.ClientIP())
|
||||||
|
|
||||||
// I have no idea how, but I manged to accidentally string the first 4
|
// I have no idea how, but I manged to accidentally string the first 4
|
||||||
// letters of the alphabet into a single function call.
|
// letters of the alphabet into a single function call.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user