mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Close index reader properly
This commit is contained in:
parent
c3d6abc8e6
commit
a57ea79660
|
@ -167,6 +167,7 @@ func (a adapter) StartTime() (int64, error) {
|
|||
return startTime, err
|
||||
}
|
||||
}
|
||||
defer indexr.Close()
|
||||
|
||||
joblabel := "job"
|
||||
tpls, err := indexr.LabelValues(joblabel)
|
||||
|
|
Loading…
Reference in a new issue