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:
Justin Lei 2023-04-05 16:09:09 -07:00 committed by Justin Lei
parent 83f43982c9
commit f90013a5a0

View file

@ -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