Merge pull request #44 from prometheus/small-13-compat-fix
Remove a Go 1.4ism to allow compilation under Go 1.3.
This commit is contained in:
commit
af0ec0d3f1
|
@ -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 {
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue