Skip to content

Commit

Permalink
fix index gateway chunk refs response (#5957)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepsukhani authored Apr 19, 2022
1 parent ba8c873 commit 8f6a75c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storage/stores/shipper/indexgateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ func (g *Gateway) GetChunkRef(ctx context.Context, req *indexgatewaypb.GetChunkR
Refs: make([]*logproto.ChunkRef, 0, len(chunks)),
}
for _, cs := range chunks {
for _, c := range cs {
result.Refs = append(result.Refs, &c.ChunkRef)
for i := range cs {
result.Refs = append(result.Refs, &cs[i].ChunkRef)
}
}
return result, nil
Expand Down

0 comments on commit 8f6a75c

Please sign in to comment.