mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Remove unneeded String() method for SampleValue type.
This commit is contained in:
parent
35706efabd
commit
af88afaf5a
|
@ -14,7 +14,6 @@
|
|||
package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -46,10 +45,6 @@ type Metric map[LabelName]LabelValue
|
|||
// remedied down the road.
|
||||
type SampleValue float32
|
||||
|
||||
func (s SampleValue) String() string {
|
||||
return fmt.Sprintf("%f", s)
|
||||
}
|
||||
|
||||
type Sample struct {
|
||||
Metric Metric
|
||||
Value SampleValue
|
||||
|
|
Loading…
Reference in a new issue