From a6c465e929583df92aedfd962f9fa014f62ff713 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 2 Jun 2016 14:48:25 +0200 Subject: [PATCH] cmd/relaysrv: Go 1.3 fix (we should probably drop that compatibility soon) --- cmd/relaysrv/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/relaysrv/main.go b/cmd/relaysrv/main.go index 3324737e..00747ce9 100644 --- a/cmd/relaysrv/main.go +++ b/cmd/relaysrv/main.go @@ -212,7 +212,7 @@ func main() { func monitorLimits() { limitCheckTimer = time.NewTimer(time.Minute) - for range limitCheckTimer.C { + for _ = range limitCheckTimer.C { if atomic.LoadInt64(&numConnections)+atomic.LoadInt64(&numProxies) > descriptorLimit { atomic.StoreInt32(&overLimit, 1) log.Println("Gone past our connection limits. Starting to refuse new/drop idle connections.")