Been too long since i did anything, can't remember what the hell is in all this....
This commit is contained in:
@@ -34,7 +34,7 @@ func RenderError(w http.ResponseWriter, r *http.Request, statusCode int) {
|
||||
return
|
||||
}
|
||||
|
||||
log.Println("✅ Successfully rendered 500 page")
|
||||
log.Println("✅ Successfully rendered error page") // ToDo: log these to database
|
||||
}
|
||||
|
||||
//ToDo Pages.go /template.go to be merged?
|
||||
|
||||
@@ -17,7 +17,7 @@ func GetVisitorLimiter(ip string) *rate.Limiter {
|
||||
|
||||
limiter, exists := visitors[ip]
|
||||
if !exists {
|
||||
limiter = rate.NewLimiter(1, 5)
|
||||
limiter = rate.NewLimiter(3, 5)
|
||||
visitors[ip] = limiter
|
||||
}
|
||||
return limiter
|
||||
|
||||
Reference in New Issue
Block a user