Skip to content

Commit

Permalink
fix GetActiveAndPartialBlockIDs panic (thanos-io#7621)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <[email protected]>
  • Loading branch information
yeya24 authored Aug 12, 2024
1 parent c9500df commit 2375b59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/block/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ func (f *ConcurrentLister) GetActiveAndPartialBlockIDs(ctx context.Context, ch c
mu.Unlock()
continue
}
ch <- uid
select {
case <-ctx.Done():
return ctx.Err()
case ch <- uid:
}
}
return nil
})
Expand Down

0 comments on commit 2375b59

Please sign in to comment.