Skip to content

Commit

Permalink
Merge pull request #487 from nokia/fix-gnmi-server-start
Browse files Browse the repository at this point in the history
fix gNMI server startup
  • Loading branch information
karimra authored Jul 22, 2024
2 parents 1e21399 + 7050377 commit c14b441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/gnmi_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c14b441

Please sign in to comment.