From 014d4bd173f469fc966df1df5b1d252c1caa19b2 Mon Sep 17 00:00:00 2001 From: Jeff Younker Date: Fri, 9 Jan 2015 14:49:17 +0100 Subject: [PATCH] Remove a Go 1.4ism to allow compilation under Go 1.3. --- prometheus/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/registry.go b/prometheus/registry.go index 8485f9a..81eda27 100644 --- a/prometheus/registry.go +++ b/prometheus/registry.go @@ -427,7 +427,7 @@ func (r *registry) writePB(w io.Writer, writeEncoded encoder) (int, error) { // Drain metricChan in case of premature return. defer func() { - for range metricChan { + for _ = range metricChan { } }()