Skip to content

Commit 865c60c

Browse files
committed
revert close order change
1 parent ba19b89 commit 865c60c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/store/proxy_merge.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,13 +558,13 @@ func newAsyncRespSet(
558558
func (l *lazyRespSet) Close() {
559559
l.bufferedResponsesMtx.Lock()
560560
defer l.bufferedResponsesMtx.Unlock()
561-
_ = l.cl.CloseSend()
562561

563562
l.closeSeries()
564563
l.noMoreData = true
565564
l.dataOrFinishEvent.Signal()
566565

567566
l.shardMatcher.Close()
567+
_ = l.cl.CloseSend()
568568
}
569569

570570
// eagerRespSet is a SeriesSet that blocks until all data is retrieved from
@@ -750,11 +750,11 @@ func sortWithoutLabels(set []*storepb.SeriesResponse, labelsToRemove map[string]
750750
}
751751

752752
func (l *eagerRespSet) Close() {
753-
_ = l.cl.CloseSend()
754753
if l.closeSeries != nil {
755754
l.closeSeries()
756755
}
757756
l.shardMatcher.Close()
757+
_ = l.cl.CloseSend()
758758
}
759759

760760
func (l *eagerRespSet) At() *storepb.SeriesResponse {

0 commit comments

Comments
 (0)