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

* Update client.go

fix missing "httpClientProvider" in NewClient

* Update client.go
pull/34609/head
wangjian 4 years ago committed by GitHub
parent 395d7eb74c
commit 530072fce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      pkg/tsdb/elasticsearch/client/client.go

@ -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
}

Loading…
Cancel
Save