implement sync.Map and atomic values with benchmark

This commit is contained in:
kirari04
2024-06-11 16:40:04 +02:00
parent e3f8c99ed3
commit 6026c4fd53
5 changed files with 254 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ func handleRateLimit(w http.ResponseWriter, r *http.Request, pe *ProxyEndpoint)
return errors.New("rate limit exceeded")
}
log.Println("Rate limit check", ip, ipTable.GetCount(ip))
// log.Println("Rate limit check", ip, ipTable.GetCount(ip))
return nil
}