From 705037775242075a3c4147483a58ea17c509e806 Mon Sep 17 00:00:00 2001 From: Karim Radhouani Date: Wed, 17 Jul 2024 11:12:42 -0700 Subject: [PATCH] fix gNMI server startup --- pkg/app/gnmi_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app/gnmi_server.go b/pkg/app/gnmi_server.go index 6a753f8e..93458d37 100644 --- a/pkg/app/gnmi_server.go +++ b/pkg/app/gnmi_server.go @@ -77,10 +77,10 @@ func (a *App) startGnmiServer() error { } ctx, cancel := context.WithCancel(a.ctx) - defer cancel() go a.registerGNMIServer(ctx) go func() { + defer cancel() err := s.Start(ctx) if err != nil { a.Logger.Print(err)