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