Skip to content

Commit

Permalink
dont call getinstance twice in checkpointing (grafana#6516)
Browse files Browse the repository at this point in the history
Signed-off-by: Owen Diehl <[email protected]>
  • Loading branch information
owen-d authored Jun 27, 2022
1 parent 6a9557a commit 8eed9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ingester/checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ type streamIterator struct {
func newStreamsIterator(ing ingesterInstances) *streamIterator {
instances := ing.getInstances()
streamInstances := make([]streamInstance, len(instances))
for i, inst := range ing.getInstances() {
for i, inst := range instances {
streams := make([]*stream, 0, inst.streams.Len())
_ = inst.forAllStreams(context.Background(), func(s *stream) error {
streams = append(streams, s)
Expand Down

0 comments on commit 8eed9a4

Please sign in to comment.