Skip to content

Commit

Permalink
[chore] remove some deprecate API calls in componenttest (open-teleme…
Browse files Browse the repository at this point in the history
…try#6706)

Signed-off-by: Bogdan Drutu <[email protected]>

Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored and jaronoff97 committed Dec 14, 2022
1 parent 41d9c04 commit f0438d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions component/componenttest/nop_factories.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ package componenttest // import "go.opentelemetry.io/collector/component/compone

import (
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/extension"
)

// NopFactories returns a component.Factories with all nop factories.
Expand All @@ -24,7 +26,7 @@ func NopFactories() (component.Factories, error) {
var err error

//nolint:staticcheck
if factories.Extensions, err = component.MakeExtensionFactoryMap(NewNopExtensionFactory()); err != nil {
if factories.Extensions, err = extension.MakeFactoryMap(NewNopExtensionFactory()); err != nil {
return component.Factories{}, err
}

Expand All @@ -33,7 +35,7 @@ func NopFactories() (component.Factories, error) {
}

//nolint:staticcheck
if factories.Exporters, err = component.MakeExporterFactoryMap(NewNopExporterFactory()); err != nil {
if factories.Exporters, err = exporter.MakeFactoryMap(NewNopExporterFactory()); err != nil {
return component.Factories{}, err
}

Expand Down

0 comments on commit f0438d4

Please sign in to comment.