Skip to content

Commit

Permalink
[FIX] Remove shadow code
Browse files Browse the repository at this point in the history
Signed-off-by: rita.canavarro <[email protected]>
  • Loading branch information
rita.canavarro committed Jul 21, 2023
1 parent 260fa5e commit 2c81c59
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/shipper/shipper.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,11 @@ func (s *Shipper) upload(ctx context.Context, meta *metadata.Meta) error {
return errors.Wrap(err, "write meta file")
}

err := block.Upload(ctx, s.logger, s.bucket, updir, s.hashFunc)
if err != nil {
return errors.Wrap(err, "while upploading the block")
err := block.Upload(ctx, s.logger, s.bucket, updir, s.hashFunc); if err != nil {
return errors.Wrap(err, "while uploading the block")
}

fileStats, err := block.GatherFileStats(updir, s.hashFunc, s.logger)
if err != nil {
fileStats, err := block.GatherFileStats(updir, s.hashFunc, s.logger); if err != nil {
// The block upload should not stop due to issues gathering data for a metric.
return nil
}
Expand Down

0 comments on commit 2c81c59

Please sign in to comment.