Skip to content

Commit

Permalink
Use param instead of global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Dec 22, 2024
1 parent b60265f commit c880718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ func StopGracefully(
span.AddEvent("Stopped server")
}
logger.Info().Msg("Stopped all servers")
if App.pluginRegistry != nil {
App.pluginRegistry.Shutdown()
if app.pluginRegistry != nil {
app.pluginRegistry.Shutdown()
logger.Info().Msg("Stopped plugin registry")
span.AddEvent("Stopped plugin registry")
}
Expand Down

0 comments on commit c880718

Please sign in to comment.