mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
chore: improve syntax in metrics collector (#7085)
This commit is contained in:
@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user