mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
Make lint happy.
This commit is contained in:
parent
78396b67dd
commit
63dbb1c69a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue