From e9f97aa384c58861f990574c844c6274234e60a2 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 28 Mar 2016 20:21:06 -0400 Subject: [PATCH] Removed extraneous fmt. Former-commit-id: e14a3f63333e04d7dd36445af59971bf4483e38c [formerly 0d230b0ee7017a88627c3829cb3e25723ce16909] [formerly 448638670a680e4e7d69b43ee8024a9cb09dc743 [formerly 3f3cc1f41a1aaed1ef924a591fd2cad367085ed2]] Former-commit-id: e8c31b3325d1b75a4b18bb9bcf842a00f5cf6ee8 [formerly 52fba3f6529f7271ed2f3ab3f9c7174acb8276c7] Former-commit-id: 1db89f1ce6fe1d62f73c71baabb01500b9ec0117 --- ratelimiter.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 } }