From 846acc10bb27483eaef850b9067702d1bcbe4d47 Mon Sep 17 00:00:00 2001 From: machine424 Date: Mon, 9 Jun 2025 13:54:47 +0200 Subject: [PATCH] chore(tsdb): remove NewLeveledCompactorWithChunkSize constructor as unused, library users ca can redefine it on their side Signed-off-by: machine424 --- tsdb/compact.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tsdb/compact.go b/tsdb/compact.go index 517c42ff02..7828fd0860 100644 --- a/tsdb/compact.go +++ b/tsdb/compact.go @@ -182,14 +182,6 @@ func DefaultPostingsDecoderFactory(_ *BlockMeta) index.PostingsDecoder { return index.DecodePostingsRaw } -func NewLeveledCompactorWithChunkSize(ctx context.Context, r prometheus.Registerer, l *slog.Logger, ranges []int64, pool chunkenc.Pool, maxBlockChunkSegmentSize int64, mergeFunc storage.VerticalChunkSeriesMergeFunc) (*LeveledCompactor, error) { - return NewLeveledCompactorWithOptions(ctx, r, l, ranges, pool, LeveledCompactorOptions{ - MaxBlockChunkSegmentSize: maxBlockChunkSegmentSize, - MergeFunc: mergeFunc, - EnableOverlappingCompaction: true, - }) -} - func NewLeveledCompactor(ctx context.Context, r prometheus.Registerer, l *slog.Logger, ranges []int64, pool chunkenc.Pool, mergeFunc storage.VerticalChunkSeriesMergeFunc) (*LeveledCompactor, error) { return NewLeveledCompactorWithOptions(ctx, r, l, ranges, pool, LeveledCompactorOptions{ MergeFunc: mergeFunc,