From 57a98a9a5e38909c9e96a3c35c75ca04f9ff321c Mon Sep 17 00:00:00 2001 From: nexustar Date: Thu, 6 Jan 2022 18:40:40 +0800 Subject: [PATCH] playground: fix panic when boot monitor --- components/playground/playground.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/playground/playground.go b/components/playground/playground.go index e334abe7f6..69bac0d2cb 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -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 { @@ -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 { @@ -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 {