Flux: Ensure connections to InflxuDB are closed (#26735)
* Flux: Ensure connections to InflxuDB are closed
This commit is contained in:
1 parent
7589b1b517
commit
ec756f3729
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user