Skip to content

Commit

Permalink
gofumpt
Browse files Browse the repository at this point in the history
Signed-off-by: yomek33 <[email protected]>
  • Loading branch information
yomek33 committed Jul 22, 2024
1 parent c85b907 commit 8173c0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions metrics/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ func handleValueTicks(labelKeys, labelValues *[]string, currentSeriesCount, seri
default:
}
}

}

func handleSeriesTicks(labelKeys, labelValues *[]string, currentSeriesCount, seriesCycle *int, updateNotify chan struct{}, seriesTick *time.Ticker) {
Expand All @@ -111,7 +110,6 @@ func handleSeriesTicks(labelKeys, labelValues *[]string, currentSeriesCount, ser
default:
}
}

}

func handleMetricTicks(metricCount, metricLength, metricCycle *int, labelKeys *[]string, updateNotify chan struct{}, metricTick *time.Ticker) {
Expand Down Expand Up @@ -176,7 +174,6 @@ func handleDoubleHalveMode(metricCount, metricLength, metricCycle, seriesCycle i
default:
}
}

}

func handleGradualChangeMode(metricCount, metricLength, metricCycle, seriesCycle int, labelKeys, labelValues []string, seriesChangeRate, maxSeriesCount, minSeriesCount int, changeSeriesTick *time.Ticker, updateNotify chan struct{}) {
Expand All @@ -199,7 +196,6 @@ func handleGradualChangeMode(metricCount, metricLength, metricCycle, seriesCycle
default:
}
}

}

// RunMetrics creates a set of Prometheus test series that update over time
Expand Down Expand Up @@ -267,7 +263,6 @@ func RunMetrics(metricCount, labelCount, seriesCount, seriesChangeRate, maxSerie
}()

return updateNotify, nil

}

// ServeMetrics serves a prometheus metrics endpoint with test series
Expand Down
1 change: 1 addition & 0 deletions metrics/serve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func TestRunMetricsSeriesCountChangeDoubleHalve(t *testing.T) {
}
}
}

func TestRunMetricsGradualChange(t *testing.T) {
const (
metricCount = 1
Expand Down

0 comments on commit 8173c0c

Please sign in to comment.