diff --git a/agent/agent.go b/agent/agent.go index 6ebc4fcdc..7f00fc6ca 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -811,7 +811,7 @@ func (a *Agent) startOutputs( return src, unit, nil } -// connectOutputs connects to all outputs. +// connectOutput connects to all outputs. func (a *Agent) connectOutput(ctx context.Context, output *models.RunningOutput) error { log.Printf("D! [agent] Attempting connection to [%s]", output.LogName()) if err := output.Connect(); err != nil { diff --git a/config/types.go b/config/types.go index 4a8a2822a..f6a7c00ea 100644 --- a/config/types.go +++ b/config/types.go @@ -19,7 +19,7 @@ type Duration time.Duration // Size is an int64 type Size int64 -// UnmarshalTOML parses the duration from the TOML config file +// UnmarshalText parses the duration from the Text config file func (d *Duration) UnmarshalText(b []byte) error { // convert to string durStr := string(b) diff --git a/plugins/inputs/ipmi_sensor/ipmi_sensor_test.go b/plugins/inputs/ipmi_sensor/ipmi_sensor_test.go index 25b4576b6..74dab5eb1 100644 --- a/plugins/inputs/ipmi_sensor/ipmi_sensor_test.go +++ b/plugins/inputs/ipmi_sensor/ipmi_sensor_test.go @@ -214,7 +214,7 @@ func TestGather(t *testing.T) { } } -// fackeExecCommand is a helper function that mock +// fakeExecCommand is a helper function that mock // the exec.Command call (and call the test binary) func fakeExecCommand(command string, args ...string) *exec.Cmd { cs := []string{"-test.run=TestHelperProcess", "--", command} @@ -536,7 +536,7 @@ func TestGatherV2(t *testing.T) { } } -// fackeExecCommandV2 is a helper function that mock +// fakeExecCommandV2 is a helper function that mock // the exec.Command call (and call the test binary) func fakeExecCommandV2(command string, args ...string) *exec.Cmd { cs := []string{"-test.run=TestHelperProcessV2", "--", command} diff --git a/plugins/inputs/sensors/sensors_test.go b/plugins/inputs/sensors/sensors_test.go index 47b8e8cbb..2a94cea3a 100644 --- a/plugins/inputs/sensors/sensors_test.go +++ b/plugins/inputs/sensors/sensors_test.go @@ -290,7 +290,7 @@ func TestGatherNotRemoveNumbers(t *testing.T) { } } -// fackeExecCommand is a helper function that mock +// fakeExecCommand is a helper function that mock // the exec.Command call (and call the test binary) func fakeExecCommand(command string, args ...string) *exec.Cmd { cs := []string{"-test.run=TestHelperProcess", "--", command}