From 0f34d342d83f22848f74df1a6770fc923a843f84 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 83cc0422e5bbc0f4ee0e5c5d7ca7697a31382549 [formerly 3f3cc1f41a1aaed1ef924a591fd2cad367085ed2]]] Former-commit-id: e8c31b3325d1b75a4b18bb9bcf842a00f5cf6ee8 [formerly 52fba3f6529f7271ed2f3ab3f9c7174acb8276c7] Former-commit-id: 1db89f1ce6fe1d62f73c71baabb01500b9ec0117 Former-commit-id: e9f97aa384c58861f990574c844c6274234e60a2 --- 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 } }