Skip to content

Commit

Permalink
[chore][extension/googleclientauth] Use correct type for create func (o…
Browse files Browse the repository at this point in the history
…pen-telemetry#37568)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->

Uses `extension.Extension` as the return type of `createExtension`
function


#### Link to tracking issue

Needed for open-telemetry/opentelemetry-collector/pull/12208
  • Loading branch information
mx-psi authored Jan 29, 2025
1 parent 7800b4a commit 7f430de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/googleclientauthextension/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewFactory() extension.Factory {
)
}

func createExtension(ctx context.Context, set extension.Settings, cfg component.Config) (component.Component, error) {
func createExtension(ctx context.Context, set extension.Settings, cfg component.Config) (extension.Extension, error) {
eCfg := cfg.(*Config)
return googleclientauthextension.CreateExtension(ctx, set, &eCfg.Config)
}
Expand Down

0 comments on commit 7f430de

Please sign in to comment.