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 Jan 6, 2022
1 parent e7e5689 commit 410c25c
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 @@ -1041,7 +1041,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 @@ -1077,7 +1077,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 @@ -1146,7 +1146,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 410c25c

Please sign in to comment.