From 63dbb1c69a3ca7ceba59d721e849cfc7abbb93b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20S=CC=8Ctibrany=CC=81?= Date: Mon, 27 Sep 2021 12:49:08 +0200 Subject: [PATCH] Make lint happy. --- tsdb/compact.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsdb/compact.go b/tsdb/compact.go index c8fa5b4ce6..95e3126ed4 100644 --- a/tsdb/compact.go +++ b/tsdb/compact.go @@ -462,7 +462,7 @@ func (c *LeveledCompactor) compact(dest string, dirs []string, open []*Block, sh uids = append(uids, meta.ULID.String()) } - outBlocks := make([]shardedBlock, shardCount, shardCount) + outBlocks := make([]shardedBlock, shardCount) for ix := range outBlocks { uid := ulid.MustNew(ulid.Now(), rand.Reader) outBlocks[ix] = shardedBlock{ @@ -472,7 +472,7 @@ func (c *LeveledCompactor) compact(dest string, dirs []string, open []*Block, sh err = c.write(dest, outBlocks, blocks...) if err == nil { - ulids := make([]ulid.ULID, len(outBlocks), len(outBlocks)) + ulids := make([]ulid.ULID, len(outBlocks)) for ix := range outBlocks { meta := outBlocks[ix].meta