Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shmsr committed Sep 22, 2023
1 parent 4eefdd9 commit 8462128
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion x-pack/metricbeat/module/azure/app_insights/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ func groupMetricsByDimension(metrics []MetricValue) map[string][]MetricValue {
helper func(metrics []MetricValue)
)

// Review comment: Can you add some more comments to this helper func?
helper = func(metrics []MetricValue) {
for _, metric := range metrics {
dimensionKey := getSortedKeys(metric.SegmentName)
Expand Down
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/azure/app_insights/data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func newMetricsTest(ts ...*date.Time) []MetricValue {
},
}

mv := make([]MetricValue, 0, 3)
mv := make([]MetricValue, 0, numOfMetricValue)
for i := range vals {
mv = append(mv,
MetricValue{
Expand Down

0 comments on commit 8462128

Please sign in to comment.