Been too long since i did anything, can't remember what the hell is in all this....

This commit is contained in:
2025-04-15 20:56:21 +01:00
parent 152c5cb18c
commit d7c15141b8
20 changed files with 248 additions and 78 deletions

View File

@@ -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?

View File

@@ -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