Skip to content

Commit ce8d466

Browse files
committed
Update LoadReceiver signature to remove unused params
Signed-off-by: Bogdan Drutu <[email protected]>
1 parent e7c74eb commit ce8d466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/configparser/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ func loadService(rawService serviceSettings) (config.Service, error) {
273273
}
274274

275275
// LoadReceiver loads a receiver config from componentConfig using the provided factories.
276-
func LoadReceiver(componentConfig *config.Parser, typeStr config.Type, fullName string, factory component.ReceiverFactory) (config.Receiver, error) {
276+
func LoadReceiver(componentConfig *config.Parser, fullName string, factory component.ReceiverFactory) (config.Receiver, error) {
277277
// Create the default config for this receiver.
278278
receiverCfg := factory.CreateDefaultConfig()
279279
receiverCfg.SetName(fullName)
@@ -310,7 +310,7 @@ func loadReceivers(recvs map[string]interface{}, factories map[config.Type]compo
310310
return nil, errorUnknownType(receiversKeyName, typeStr, fullName)
311311
}
312312

313-
receiverCfg, err := LoadReceiver(componentConfig, typeStr, fullName, factory)
313+
receiverCfg, err := LoadReceiver(componentConfig, fullName, factory)
314314

315315
if err != nil {
316316
// LoadReceiver already wraps the error.

0 commit comments

Comments
 (0)