File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -169,13 +169,14 @@ func (p *MetricProber) collectMetricsFromTargets() {
169169 metricsChannel := make (chan PrometheusMetricResult )
170170
171171 wgSubscription := sizedwaitgroup .New (p .Conf .Prober .ConcurrencySubscription )
172- wgSubscriptionResource := sizedwaitgroup .New (p .Conf .Prober .ConcurrencySubscriptionResource )
173172
174173 go func () {
175174 for subscriptionId , resourceList := range p .targets {
176175 wgSubscription .Add ()
177176 go func (subscriptionId string , targetList []MetricProbeTarget ) {
178177 defer wgSubscription .Done ()
178+
179+ wgSubscriptionResource := sizedwaitgroup .New (p .Conf .Prober .ConcurrencySubscriptionResource )
179180 client := p .MetricsClient (subscriptionId )
180181
181182 for _ , target := range targetList {
You can’t perform that action at this time.
0 commit comments