Skip to content

Commit

Permalink
pkg/store/bucket: translate variable name from English to US
Browse files Browse the repository at this point in the history
Linter failed with: `saviour` is a misspelling of `savior` (misspell)

Signed-off-by: Vladimir Kononov <krya-kryak@users.noreply.github.com>
  • Loading branch information
krya-kryak committed Mar 16, 2021
1 parent 8c0d7c6 commit d59543d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/store/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,7 @@ func (r *bucketChunkReader) loadChunks(ctx context.Context, res []seriesEntry, a
// There is also crc32 after the chunk, but we ignore that.
chunkLen = n + 1 + int(l)
if chunkLen <= len(cb) {
if err := populateChunk(&(res[pIdx.i].chks[pIdx.j]), rawChunk(cb[n:chunkLen]), aggrs, r.saviour); err != nil {
if err := populateChunk(&(res[pIdx.i].chks[pIdx.j]), rawChunk(cb[n:chunkLen]), aggrs, r.savior); err != nil {
return errors.Wrap(err, "populate chunk")
}
continue
Expand Down Expand Up @@ -2427,7 +2427,7 @@ func (r *bucketChunkReader) loadChunks(ctx context.Context, res []seriesEntry, a
r.stats.chunksFetchDurationSum += time.Since(fetchBegin)
r.stats.chunksFetchedSizeSum += len(*nb)

if err := populateChunk(&(res[pIdx.i].chks[pIdx.j]), rawChunk((*nb)[n:]), aggrs, r.saviour); err != nil {
if err := populateChunk(&(res[pIdx.i].chks[pIdx.j]), rawChunk((*nb)[n:]), aggrs, r.savior); err != nil {
return errors.Wrap(err, "populate chunk")
}

Expand All @@ -2436,7 +2436,7 @@ func (r *bucketChunkReader) loadChunks(ctx context.Context, res []seriesEntry, a
return nil
}

func (r *bucketChunkReader) saviour(b []byte) ([]byte, error) {
func (r *bucketChunkReader) savior(b []byte) ([]byte, error) {
cb, err := r.block.chunkPool.Get(len(b))
if err != nil {
return nil, errors.Wrap(err, "allocate chunk bytes")
Expand Down

0 comments on commit d59543d

Please sign in to comment.