Skip to content

Commit 4e15af7

Browse files
committed
use errors wrapf
Signed-off-by: yeya24 <[email protected]>
1 parent 79ac424 commit 4e15af7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/compactor/sharded_block_populator.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package compactor
22

33
import (
44
"context"
5-
"fmt"
65
"io"
76
"log/slog"
87
"maps"
@@ -186,7 +185,7 @@ func (c ShardedBlockPopulator) PopulateBlock(ctx context.Context, metrics *tsdb.
186185
case chunkenc.EncXOR:
187186
meta.Stats.NumFloatSamples += samples
188187
default:
189-
return errors.Wrap(err, fmt.Sprintf("unknown chunk encoding %s", chk.Chunk.Encoding().String()))
188+
return errors.Wrapf(err, "unknown chunk encoding %s", chk.Chunk.Encoding().String())
190189
}
191190
}
192191

0 commit comments

Comments
 (0)