Skip to content

Commit

Permalink
Update cmd/thanos/receive.go
Browse files Browse the repository at this point in the history
Co-authored-by: Bartlomiej Plotka <[email protected]>
  • Loading branch information
fpetkovski and bwplotka authored Jun 24, 2022
1 parent 6e6dc9e commit 1ff7e38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/thanos/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ func runReceive(
ctx, cancel := context.WithCancel(context.Background())
g.Add(func() error {
return runutil.Repeat(2*time.Hour, ctx.Done(), func() error {
err := dbs.Prune(ctx)
if err != nil {
if err := dbs.Prune(ctx); err != nil {
level.Error(logger).Log("err", err)
}
return nil
Expand Down

0 comments on commit 1ff7e38

Please sign in to comment.