Skip to content

Commit

Permalink
fix error input
Browse files Browse the repository at this point in the history
  • Loading branch information
xyctruth committed Jun 9, 2022
1 parent 15db802 commit 18b7217
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/collector/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ func LoadConfig(configPath string, fn func(CollectorConfig)) error {
return fmt.Errorf("Fatal error config file: %w", err)
}

if err = conf.UnmarshalKey(""+
"settingvar probe probe.Probe", &config); err != nil {
if err = conf.UnmarshalKey("collector", &config); err != nil {
return fmt.Errorf("Fatal error config CollectorConfig: %w", err)
}

Expand Down

0 comments on commit 18b7217

Please sign in to comment.