Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/chunk/gcp/bigtable_object_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (s *bigtableObjectClient) GetChunks(ctx context.Context, input []chunk.Chun
decodeContext := chunk.NewDecodeContext()

var processingErr error
var recievedChunks = 0
var receivedChunks = 0

// rows are returned in key order, not order in row list
err := table.ReadRows(ctx, page, func(row bigtable.Row) bool {
Expand All @@ -130,7 +130,7 @@ func (s *bigtableObjectClient) GetChunks(ctx context.Context, input []chunk.Chun
return false
}

recievedChunks++
receivedChunks++
outs <- chunk
return true
})
Expand All @@ -139,8 +139,8 @@ func (s *bigtableObjectClient) GetChunks(ctx context.Context, input []chunk.Chun
errs <- processingErr
} else if err != nil {
errs <- errors.WithStack(err)
} else if recievedChunks < len(page) {
errs <- errors.WithStack(fmt.Errorf("Asked for %d chunks for Bigtable, received %d", len(page), recievedChunks))
} else if receivedChunks < len(page) {
errs <- errors.WithStack(fmt.Errorf("Asked for %d chunks for Bigtable, received %d", len(page), receivedChunks))
}
}(page)
}
Expand Down