Skip to content

Commit

Permalink
Simplify syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Nov 6, 2024
1 parent 600dc23 commit efa2249
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -1074,16 +1074,15 @@ var runCmd = &cobra.Command{
}

// Shutdown the server gracefully.
var signals []os.Signal
signals = append(signals,
signals := []os.Signal{
os.Interrupt,
os.Kill,
syscall.SIGTERM,
syscall.SIGABRT,
syscall.SIGQUIT,
syscall.SIGHUP,
syscall.SIGINT,
)
}
signalsCh := make(chan os.Signal, 1)
signal.Notify(signalsCh, signals...)
go func(pluginRegistry *plugin.Registry,
Expand Down

0 comments on commit efa2249

Please sign in to comment.