Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Pushkar Mishra <pushkarmishra029@gmail.com>
  • Loading branch information
Pushkarm029 committed May 12, 2024
1 parent c0878ad commit 976ee74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions plugin/sampling/strategystore/adaptive/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ func (a *aggregator) Close() error {
if err := a.postAggregator.Close(); err != nil {
errs = append(errs, err)
}
// if a.stop != nil {
// close(a.stop)
// }
if a.stop != nil {
close(a.stop)
}
a.bgFinished.Wait()
return errors.Join(errs...)
}
Expand Down
3 changes: 0 additions & 3 deletions plugin/sampling/strategystore/adaptive/postaggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ func (p *PostAggregator) runBackground(f func()) {
func (p *PostAggregator) Close() error {
p.logger.Info("stopping adaptive sampling processor")
err := p.electionParticipant.Close()
if p.shutdown != nil {
close(p.shutdown)
}
p.bgFinished.Wait()
return err
}
Expand Down

0 comments on commit 976ee74

Please sign in to comment.