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

* Update client.go

fix missing "httpClientProvider" in NewClient

* Update client.go
This commit is contained in:
wangjian 2021-05-24 21:45:29 +08:00 committed by GitHub
parent 395d7eb74c
commit 530072fce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}