mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Flux: Ensure connections to InflxuDB are closed (#26735)
* Flux: Ensure connections to InflxuDB are closed
This commit is contained in:
parent
7589b1b517
commit
ec756f3729
@ -29,6 +29,7 @@ func Query(ctx context.Context, dsInfo *models.DataSource, tsdbQuery *tsdb.TsdbQ
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer runner.client.Close()
|
||||
|
||||
for _, query := range tsdbQuery.Queries {
|
||||
qm, err := GetQueryModelTSDB(query, tsdbQuery.TimeRange, dsInfo)
|
||||
|
Loading…
Reference in New Issue
Block a user