Skip to content

Commit 9cd3964

Browse files
further cleanup
Signed-off-by: Tim Vaillancourt <[email protected]>
1 parent 451258f commit 9cd3964

File tree

1 file changed

+2
-4
lines changed
  • go/vt/vttablet/tabletserver/throttle

1 file changed

+2
-4
lines changed

go/vt/vttablet/tabletserver/throttle/check.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,8 @@ func (check *ThrottlerCheck) SelfChecks(ctx context.Context) {
263263
return
264264
case <-selfCheckTicker.C:
265265
for metricName, metricResult := range check.AggregatedMetrics(ctx) {
266-
aggregatedMetricName := metricName
267-
268-
go check.localCheck(ctx, aggregatedMetricName)
269-
go check.reportAggregated(aggregatedMetricName, metricResult)
266+
go check.localCheck(ctx, metricName)
267+
go check.reportAggregated(metricName, metricResult)
270268
}
271269
}
272270
}

0 commit comments

Comments
 (0)