Skip to content

Commit b99f25d

Browse files
committed
feat(outputs.nats): linter fixes
1 parent b0191d3 commit b99f25d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/outputs/nats/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ Routing based on tags, metric name and field name:
130130
subject = 'telegraf.metrics.{{ .Tag "datacenter" }}.{{ .Tag "host" }}.{{ .Name }}.{{ .Field "Value1" }}'
131131
```
132132

133-
If you’re using JetStream the value of subject determines where messages are published.
133+
If you’re using JetStream the value of subject determines where messages
134+
are published.
134135

135136
> [!IMPORTANT]
136137
> When using a dynamic subject template, Telegraf does not automatically register the

plugins/outputs/nats/nats.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ func (n *NATS) Write(metrics []telegraf.Metric) error {
350350
if err != nil {
351351
return fmt.Errorf("failed to send NATS message to subject %q: %w", sub, err)
352352
}
353-
354353
}
355354

356355
if pafs != nil {

0 commit comments

Comments
 (0)