Commit ec756f37 by Paul Sneddon Committed by GitHub

Flux: Ensure connections to InflxuDB are closed (#26735)

* Flux: Ensure connections to InflxuDB are closed
parent 7589b1b5
...@@ -29,6 +29,7 @@ func Query(ctx context.Context, dsInfo *models.DataSource, tsdbQuery *tsdb.TsdbQ ...@@ -29,6 +29,7 @@ func Query(ctx context.Context, dsInfo *models.DataSource, tsdbQuery *tsdb.TsdbQ
if err != nil { if err != nil {
return nil, err return nil, err
} }
defer runner.client.Close()
for _, query := range tsdbQuery.Queries { for _, query := range tsdbQuery.Queries {
qm, err := GetQueryModelTSDB(query, tsdbQuery.TimeRange, dsInfo) qm, err := GetQueryModelTSDB(query, tsdbQuery.TimeRange, dsInfo)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment