Skip to content

Commit

Permalink
nolint:staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
fionaliao committed Oct 20, 2023
1 parent b9b7994 commit 8061c62
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tsdb/head_wal.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Outer:
idx := uint64(mSeries.ref) % uint64(concurrency)
processors[idx].input <- walSubsetProcessorInputItem{walSeriesRef: walSeries.Ref, existingSeries: mSeries}
}
seriesPool.Put(v)
seriesPool.Put(v) //nolint:staticcheck
case []record.RefSample:
samples := v
minValidTime := h.minValidTime.Load()
Expand Down Expand Up @@ -289,7 +289,7 @@ Outer:
}
samples = samples[m:]
}
samplesPool.Put(v)
samplesPool.Put(v) //nolint:staticcheck
case []tombstones.Stone:
for _, s := range v {
for _, itv := range s.Intervals {
Expand All @@ -303,12 +303,12 @@ Outer:
h.tombstones.AddInterval(s.Ref, itv)
}
}
tstonesPool.Put(v)
tstonesPool.Put(v) //nolint:staticcheck
case []record.RefExemplar:
for _, e := range v {
exemplarsInput <- e
}
exemplarsPool.Put(v)
exemplarsPool.Put(v) //nolint:staticcheck
case []record.RefHistogramSample:
samples := v
minValidTime := h.minValidTime.Load()
Expand Down Expand Up @@ -344,7 +344,7 @@ Outer:
}
samples = samples[m:]
}
histogramsPool.Put(v)
histogramsPool.Put(v) //nolint:staticcheck
case []record.RefFloatHistogramSample:
samples := v
minValidTime := h.minValidTime.Load()
Expand Down Expand Up @@ -380,7 +380,7 @@ Outer:
}
samples = samples[m:]
}
floatHistogramsPool.Put(v)
floatHistogramsPool.Put(v) //nolint:staticcheck
case []record.RefMetadata:
for _, m := range v {
s := h.series.getByID(m.Ref)
Expand All @@ -394,7 +394,7 @@ Outer:
Help: m.Help,
}
}
metadataPool.Put(v)
metadataPool.Put(v) //nolint:staticcheck
default:
panic(fmt.Errorf("unexpected decoded type: %T", d))
}
Expand Down Expand Up @@ -861,7 +861,7 @@ func (h *Head) loadWBL(r *wlog.Reader, multiRef map[chunks.HeadSeriesRef]chunks.
}
samples = samples[m:]
}
histogramSamplesPool.Put(v)
histogramSamplesPool.Put(v) //nolint:staticcheck
case []record.RefFloatHistogramSample:
samples := v
// We split up the samples into chunks of 5000 samples or less.
Expand Down Expand Up @@ -893,7 +893,7 @@ func (h *Head) loadWBL(r *wlog.Reader, multiRef map[chunks.HeadSeriesRef]chunks.
}
samples = samples[m:]
}
floatHistogramSamplesPool.Put(v)
floatHistogramSamplesPool.Put(v) //nolint:staticcheck
default:
panic(fmt.Errorf("unexpected decodedCh type: %T", d))
}
Expand Down

0 comments on commit 8061c62

Please sign in to comment.