Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Rabenhorst <[email protected]>
  • Loading branch information
rabenhorst committed Aug 19, 2023
1 parent 0f1712e commit 0fa8ac5
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions pkg/compact/downsample/downsample_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1039,26 +1039,6 @@ func blockFromChunks(chks []chunks.Meta) *memBlock {
return mb
}

func chunkFromSamples(t *testing.T, samples []sample) chunks.Meta {
if len(samples) == 0 {
return chunks.Meta{}
}

chk := chunkenc.NewXORChunk()
app, err := chk.Appender()
testutil.Ok(t, err)

for _, s := range samples {
app.Append(s.t, s.v)
}

return chunks.Meta{
MinTime: samples[0].t,
MaxTime: samples[len(samples)-1].t,
Chunk: chk,
}
}

func chunksFromHistogramSamples(t *testing.T, samples []sample) []chunks.Meta {
if len(samples) == 0 {
return nil
Expand Down

0 comments on commit 0fa8ac5

Please sign in to comment.