Skip to content

Commit a117868

Browse files
committed
remove if-statement check for exporter batching enablement
1 parent 7431cf2 commit a117868

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

exporter/splunkhecexporter/factory.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ func getExporterOptions(cfg *Config, startFunc component.StartFunc, shutdownFunc
6666
exporterhelper.WithQueue(cfg.QueueSettings),
6767
exporterhelper.WithStart(startFunc),
6868
exporterhelper.WithShutdown(shutdownFunc),
69-
}
70-
71-
if cfg.BatcherConfig.Enabled {
72-
options = append(options, exporterhelper.WithBatcher(cfg.BatcherConfig))
69+
exporterhelper.WithBatcher(cfg.BatcherConfig),
7370
}
7471

7572
return options

0 commit comments

Comments
 (0)