diff --git a/ratelimiter.go b/ratelimiter.go index a01e268..35b070f 100755 --- a/ratelimiter.go +++ b/ratelimiter.go @@ -1,9 +1,6 @@ package main -import ( - "fmt" - "time" -) +import "time" var bannedIPs []string @@ -13,7 +10,6 @@ func init() { func clearBannedIPs() { for { - fmt.Println("CLEARING IPS!!") bannedIPs = []string{} time.Sleep(3 * time.Minute) } @@ -23,7 +19,7 @@ func isIPBanned(ip string) bool { if stringInSlice(ip, bannedIPs) { return true } else { - bannedIPs = append(bannedIPs, ip) + bannedIPs = append(bannedIPs, ip) return false } }