Skip to content

Commit

Permalink
add missing err check
Browse files Browse the repository at this point in the history
  • Loading branch information
poyzannur committed Jan 5, 2024
1 parent eb10d16 commit 44ba07c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/storage/stores/shipper/bloomshipper/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,11 @@ func (b *BloomClient) PutBlocks(ctx context.Context, blocks []Block) ([]Block, e
key := createBlockObjectKey(block.Ref)
objectClient := b.periodicObjectClients[period]

block.Data.Seek(0, 0)
_, err = block.Data.Seek(0, 0)
if err != nil {
return fmt.Errorf("error uploading block file: %w", err)
}

err = objectClient.PutObject(ctx, key, block.Data)
if err != nil {
return fmt.Errorf("error uploading block file: %w", err)
Expand Down

0 comments on commit 44ba07c

Please sign in to comment.