Skip to content

Commit 18b7217

Browse files
committed
fix error input
1 parent 15db802 commit 18b7217

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/collector/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ func LoadConfig(configPath string, fn func(CollectorConfig)) error {
2424
return fmt.Errorf("Fatal error config file: %w", err)
2525
}
2626

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

0 commit comments

Comments
 (0)