Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: liguozhong <[email protected]>

Signed-off-by: fuling <[email protected]>
  • Loading branch information
liguozhong committed Oct 19, 2023
1 parent 0860013 commit c96b918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/api/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ func renderTargetData(targets map[string][]TargetServiceDiscovery) TargetDiscove
res.DroppedTargets = append(res.DroppedTargets, &DroppedTarget{
DiscoveredLabels: target.discoveredLabels.Map(),
})
res.DroppedTargetCounts[job] = res.DroppedTargetCounts[job] + 1
res.DroppedTargetCounts[job]++
} else {
res.ActiveTargets = append(res.ActiveTargets, &Target{
DiscoveredLabels: target.discoveredLabels.Map(),
Expand Down

0 comments on commit c96b918

Please sign in to comment.