Skip to content

Commit

Permalink
playground: fix panic when boot monitor (#1712)
Browse files Browse the repository at this point in the history
  • Loading branch information
nexustar authored and AstroProfundis committed Jan 10, 2022
1 parent 399b6dc commit 4f90d0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ func (p *Playground) bootMonitor(ctx context.Context, env *environment.Environme
}

p.instanceWaiter.Go(func() error {
err := p.monitor.wait()
err := monitor.wait()
if err != nil && atomic.LoadInt32(&p.curSig) == 0 {
fmt.Printf("Prometheus quit: %v\n", err)
} else {
Expand Down Expand Up @@ -1067,7 +1067,7 @@ func (p *Playground) bootNGMonitoring(ctx context.Context, env *environment.Envi
}

p.instanceWaiter.Go(func() error {
err := p.ngmonitoring.wait()
err := ngm.wait()
if err != nil && atomic.LoadInt32(&p.curSig) == 0 {
fmt.Printf("ng-monitoring quit: %v\n", err)
} else {
Expand Down Expand Up @@ -1136,7 +1136,7 @@ func (p *Playground) bootGrafana(ctx context.Context, env *environment.Environme
}

p.instanceWaiter.Go(func() error {
err := p.grafana.wait()
err := grafana.wait()
if err != nil && atomic.LoadInt32(&p.curSig) == 0 {
fmt.Printf("Grafana quit: %v\n", err)
} else {
Expand Down

0 comments on commit 4f90d0f

Please sign in to comment.