chore: improve syntax in metrics collector (#7085)

This commit is contained in:
Marcin Tojek 2023-04-11 15:50:34 +02:00 committed by GitHub
parent 63af4c6ed1
commit ad2353c3d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -57,8 +57,7 @@ func (v *CachedGaugeVec) Collect(ch chan<- prometheus.Metric) {
func (v *CachedGaugeVec) WithLabelValues(operation VectorOperation, value float64, labelValues ...string) { func (v *CachedGaugeVec) WithLabelValues(operation VectorOperation, value float64, labelValues ...string) {
switch operation { switch operation {
case VectorOperationAdd: case VectorOperationAdd, VectorOperationSet:
case VectorOperationSet:
default: default:
panic("unsupported vector operation") panic("unsupported vector operation")
} }