Skip to content

Commit 77a9d8e

Browse files
committed
Polishing
1 parent f348c39 commit 77a9d8e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/standalone/daemon.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ func (d *Daemon) Start(zl *log.ZapLogger) error {
5454
if err := controllerMgr.Init(ctx); err != nil {
5555
mainLogger.Fatal("Failed to initialize controller manager", zap.Error(err))
5656
}
57-
defer controllerMgr.Stop(ctx)
5857

5958
// start heartbeat goroutine for application insights
6059
go tel.Heartbeat(ctx, d.config.TelemetryInterval)
@@ -64,7 +63,7 @@ func (d *Daemon) Start(zl *log.ZapLogger) error {
6463
mainLogger.Info("Started controller manager")
6564

6665
<-ctx.Done()
67-
// controllerMgr.Stop(ctx)
66+
controllerMgr.Stop(ctx)
6867

6968
mainLogger.Info("Network observability exiting. Till next time!")
7069
return nil

0 commit comments

Comments
 (0)