Skip to content

Commit

Permalink
feat(common.socket): remove whitespace only diff
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsStegman committed Oct 7, 2024
1 parent e302306 commit 6d44ec7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions plugins/inputs/socket_listener/socket_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,15 @@ func (sl *SocketListener) Start(acc telegraf.Accumulator) error {
// Create the callbacks for parsing the data and recording issues
onData := func(_ net.Addr, data []byte) {
metrics, err := sl.parser.Parse(data)

if err != nil {
acc.AddError(err)
return
}

if len(metrics) == 0 {
once.Do(func() {
sl.Log.Debug(internal.NoMetricsCreatedMsg)
})
}

for _, m := range metrics {
acc.AddMetric(m)
}
Expand Down

0 comments on commit 6d44ec7

Please sign in to comment.