Close index reader properly

This commit is contained in:
Fabian Reinartz 2017-10-23 21:59:18 +02:00
parent c3d6abc8e6
commit a57ea79660
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ func (a adapter) StartTime() (int64, error) {
return startTime, err
}
}
defer indexr.Close()
joblabel := "job"
tpls, err := indexr.LabelValues(joblabel)