Browse Source

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>
pull/12192/head
Justin Lei 2 years ago committed by Justin Lei
parent
commit
f90013a5a0
  1. 3
      storage/remote/codec.go

3
storage/remote/codec.go

@ -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…
Cancel
Save