mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Update storage/remote/codec.go
Co-authored-by: Björn Rabenstein <github@rabenste.in> Signed-off-by: Justin Lei <97976793+leizor@users.noreply.github.com>
This commit is contained in:
parent
83f43982c9
commit
f90013a5a0
|
@ -455,8 +455,7 @@ func (c *concreteSeriesIterator) Seek(t int64) chunkenc.ValueType {
|
|||
}
|
||||
|
||||
func getHistogramValType(h *prompb.Histogram) chunkenc.ValueType {
|
||||
_, isInt := h.GetCount().(*prompb.Histogram_CountInt)
|
||||
if isInt {
|
||||
if _, isInt := h.GetCount().(*prompb.Histogram_CountInt); isInt {
|
||||
return chunkenc.ValHistogram
|
||||
}
|
||||
return chunkenc.ValFloatHistogram
|
||||
|
|
Loading…
Reference in a new issue