Elasticsearch: fix NewClient not passing httpClientProvider to client impl (#34539) (#34594)

* Update client.go

fix missing "httpClientProvider" in NewClient

* Update client.go

(cherry picked from commit 530072fce7)

Co-authored-by: wangjian <wj0360@foxmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-05-24 15:22:27 +01:00
committed by GitHub
co-authored by wangjian
parent bac7b5ad6d
commit ea1dae55e8
+7 -6
View File
@@ -99,12 +99,13 @@ var NewClient = func(ctx context.Context, httpClientProvider httpclient.Provider
clientLog.Info("Creating new client", "version", version.String(), "timeField", timeField, "indices", strings.Join(indices, ", "))
return &baseClientImpl{
ctx: ctx,
ds: ds,
version: version,
timeField: timeField,
indices: indices,
timeRange: timeRange,
ctx: ctx,
httpClientProvider: httpClientProvider,
ds: ds,
version: version,
timeField: timeField,
indices: indices,
timeRange: timeRange,
}, nil
}