Skip to content

Commit

Permalink
Update LoadReceiver signature to remove unused params
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu committed Mar 26, 2021
1 parent e7c74eb commit ce8d466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/configparser/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func loadService(rawService serviceSettings) (config.Service, error) {
}

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

receiverCfg, err := LoadReceiver(componentConfig, typeStr, fullName, factory)
receiverCfg, err := LoadReceiver(componentConfig, fullName, factory)

if err != nil {
// LoadReceiver already wraps the error.
Expand Down

0 comments on commit ce8d466

Please sign in to comment.