mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-08-30 21:28:13 +02:00
cmd/antelope-api-healtcheck/main.go: in signalEventLoop() no need to wrap the for loop in a anonymous function.
This commit is contained in:
parent
fba9402584
commit
9456b8acbb
1 changed files with 28 additions and 30 deletions
|
|
@ -96,7 +96,6 @@ func signalEventLoop() {
|
|||
signal.Notify(sig_ch, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM)
|
||||
|
||||
// Event loop
|
||||
func() {
|
||||
var run bool = true
|
||||
for run {
|
||||
// Block until we get a signal.
|
||||
|
|
@ -130,7 +129,6 @@ func signalEventLoop() {
|
|||
l.Warn("Unknown signal")
|
||||
}
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
// main
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue