forked from mirror/client_golang
Remove a Go 1.4ism to allow compilation under Go 1.3.
This commit is contained in:
parent
d7f000b100
commit
014d4bd173
|
@ -427,7 +427,7 @@ func (r *registry) writePB(w io.Writer, writeEncoded encoder) (int, error) {
|
||||||
|
|
||||||
// Drain metricChan in case of premature return.
|
// Drain metricChan in case of premature return.
|
||||||
defer func() {
|
defer func() {
|
||||||
for range metricChan {
|
for _ = range metricChan {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue