Skip to content

Commit 7149915

Browse files
committed
fix component breaking change
1 parent dfe047e commit 7149915

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/configelasticsearch/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func TestConfig(t *testing.T) {
9797
assert.NoError(t, xconfmap.Validate(cfg))
9898
assert.Equal(t, tt.expected, &cfg)
9999

100-
_, err = cfg.ToClient(context.Background(), componenttest.NewNopHost(), componenttest.NewNopTelemetrySettings())
100+
_, err = cfg.ToClient(context.Background(), nil, componenttest.NewNopTelemetrySettings())
101101
require.NoError(t, err)
102102
})
103103
}

config/configelasticsearch/esclient.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ func (cl *clientLogger) ResponseBodyEnabled() bool {
102102
// user_agent should be added with the confighttp client
103103
func (cfg *ClientConfig) ToClient(
104104
ctx context.Context,
105-
host component.Host,
105+
extensions map[component.ID]component.Component,
106106
telemetry component.TelemetrySettings,
107107
) (*elasticsearch.Client, error) {
108-
httpClient, err := cfg.ClientConfig.ToClient(ctx, host, telemetry)
108+
httpClient, err := cfg.ClientConfig.ToClient(ctx, extensions, telemetry)
109109
if err != nil {
110110
return nil, err
111111
}

0 commit comments

Comments
 (0)