File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ import (
23
23
"github.com/open-telemetry/opentelemetry-collector-contrib/cmd/golden/internal"
24
24
)
25
25
26
- // InsertDefault is a helper function to insert a default value for a configoptional.Optional type.
27
- func InsertDefault [T any ](opt * configoptional.Optional [T ]) error {
26
+ // insertDefault is a helper function to insert a default value for a configoptional.Optional type.
27
+ func insertDefault [T any ](opt * configoptional.Optional [T ]) error {
28
28
if opt .HasValue () {
29
29
return nil
30
30
}
@@ -53,14 +53,14 @@ func run(args []string) error {
53
53
factory := otlpreceiver .NewFactory ()
54
54
receiverConfig := factory .CreateDefaultConfig ().(* otlpreceiver.Config )
55
55
if cfg .OTLPHTTPEndoint != "" {
56
- if err := InsertDefault (& receiverConfig .HTTP ); err != nil {
56
+ if err := insertDefault (& receiverConfig .HTTP ); err != nil {
57
57
return err
58
58
}
59
59
receiverConfig .HTTP .Get ().ServerConfig .Endpoint = cfg .OTLPHTTPEndoint
60
60
}
61
61
62
62
if cfg .OTLPEndpoint != "" {
63
- if err := InsertDefault (& receiverConfig .GRPC ); err != nil {
63
+ if err := insertDefault (& receiverConfig .GRPC ); err != nil {
64
64
return err
65
65
}
66
66
receiverConfig .GRPC .Get ().NetAddr .Endpoint = cfg .OTLPEndpoint
You can’t perform that action at this time.
0 commit comments