tech(influxdb): close body reader

This commit is contained in:
bergquist
2016-11-08 19:16:37 +01:00
parent fd09f17cd3
commit 98a7bf181a

View File

@@ -68,8 +68,10 @@ func (e *InfluxDBExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice,
var response Response
dec := json.NewDecoder(resp.Body)
defer resp.Body.Close()
dec.UseNumber()
err = dec.Decode(&response)
if err != nil {
return result.WithError(err)
}