Skip to content

Commit c091a1c

Browse files
authored
[chore] prevent unkeyed literal initialization (open-telemetry#43866)
1 parent bdb46e1 commit c091a1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extension/opampcustommessages/custom_messages.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import "github.com/open-telemetry/opamp-go/protobufs"
99
// CustomCapabilityRegisterOptions represents extra options that can be use in CustomCapabilityRegistry.Register
1010
type CustomCapabilityRegisterOptions struct {
1111
MaxQueuedMessages int
12+
// prevent unkeyed literal initialization
13+
_ struct{}
1214
}
1315

1416
// DefaultCustomCapabilityRegisterOptions returns the default options for CustomCapabilityRegisterOptions

0 commit comments

Comments
 (0)