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) {
switch operation {
case VectorOperationAdd:
case VectorOperationSet:
case VectorOperationAdd, VectorOperationSet:
default:
panic("unsupported vector operation")
}