Skip to content

Commit 7293a9a

Browse files
committed
lint
1 parent d8f1fb6 commit 7293a9a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

receiver/splunkenterprisereceiver/scraper.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (s *splunkScraper) scrape(ctx context.Context) (pmetric.Metrics, error) {
143143
}
144144

145145
// Each metric has its own scrape function associated with it
146-
func (s *splunkScraper) scrapeLicenseUsageByIndex(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
146+
func (s *splunkScraper) scrapeLicenseUsageByIndex(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
147147
// Because we have to utilize network resources for each KPI we should check that each metrics
148148
// is enabled before proceeding
149149
if !s.conf.MetricsBuilderConfig.Metrics.SplunkLicenseIndexUsage.Enabled || !s.splunkClient.isConfigured(typeCm) {
@@ -217,7 +217,7 @@ func (s *splunkScraper) scrapeLicenseUsageByIndex(ctx context.Context, now pcomm
217217
}
218218
}
219219

220-
func (s *splunkScraper) scrapeAvgExecLatencyByHost(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
220+
func (s *splunkScraper) scrapeAvgExecLatencyByHost(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
221221
// Because we have to utilize network resources for each KPI we should check that each metrics
222222
// is enabled before proceeding
223223
if !s.conf.MetricsBuilderConfig.Metrics.SplunkSchedulerAvgExecutionLatency.Enabled {
@@ -295,7 +295,7 @@ func (s *splunkScraper) scrapeAvgExecLatencyByHost(ctx context.Context, now pcom
295295
}
296296
}
297297

298-
func (s *splunkScraper) scrapeIndexerAvgRate(ctx context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
298+
func (s *splunkScraper) scrapeIndexerAvgRate(_ context.Context, now pcommon.Timestamp, info infoDict, errs chan error) {
299299
// Because we have to utilize network resources for each KPI we should check that each metrics
300300
// is enabled before proceeding
301301
if !s.conf.MetricsBuilderConfig.Metrics.SplunkIndexerAvgRate.Enabled {
@@ -1749,11 +1749,11 @@ func (s *splunkScraper) scrapeSearchArtifacts(ctx context.Context, now pcommon.T
17491749
}
17501750

17511751
// somewhat unique scrape function for gathering the info attribute
1752-
func (s *splunkScraper) scrapeInfo(ctx context.Context, now pcommon.Timestamp, errs chan error) map[any]Info {
1752+
func (s *splunkScraper) scrapeInfo(ctx context.Context, _ pcommon.Timestamp, errs chan error) map[any]Info {
17531753
// there could be an endpoint configured for each type (never more than 3)
17541754
info := make(map[any]Info)
17551755

1756-
for cliType, _ := range s.splunkClient.clients {
1756+
for cliType := range s.splunkClient.clients {
17571757
var i Info
17581758

17591759
ctx = context.WithValue(ctx, endpointType("type"), cliType)

0 commit comments

Comments
 (0)