Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: pushkarm029 <pushkarmishra029@gmail.com>
  • Loading branch information
Pushkarm029 committed May 21, 2024
1 parent cf87b44 commit 24f5a31
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions plugin/sampling/strategystore/adaptive/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ type Processor struct {

serviceCache []SamplingCache

shutdown chan struct{}
bgFinished sync.WaitGroup
shutdown chan struct{}

operationsCalculatedGauge metrics.Gauge
calculateProbabilitiesLatency metrics.Timer
Expand Down Expand Up @@ -248,12 +247,7 @@ func (p *Processor) runCalculation() {
// be way longer than the time to run the calculations.

p.calculateProbabilitiesLatency.Record(time.Since(startTime))

p.bgFinished.Add(1)
go func() {
p.saveProbabilitiesAndQPS()
p.bgFinished.Done()
}()
p.saveProbabilitiesAndQPS()
}
}

Expand Down

0 comments on commit 24f5a31

Please sign in to comment.