Skip to content

Commit 4b3d22f

Browse files
committed
CR 6 - remove ctx.Done from go routines and simplify the main function
1 parent a9324d3 commit 4b3d22f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/autoscaler/metricsclient/prometheus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (pc *PrometheusMetricsClient) getResourceMetrics(ctx context.Context, metri
127127
for metricName, queryTemplate := range pc.queryTemplates {
128128
windowSizeToResources := metricToWindowSizes[metricName]
129129

130-
// maximum goroutines is limited to the number of unique windowSize values across all metrics (6 by default).
130+
// maximum goroutines is limited to the number of unique windowSize values across all metrics (5 by default).
131131
for windowSize, resourcesInWindowSize := range windowSizeToResources {
132132
wg.Add(1)
133133
go func(resourcesInWindowSize map[string]struct{}, metricName, windowSize string, resultChan chan<- *metricResult) {

0 commit comments

Comments
 (0)