mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-07-03 11:53:43 +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)
|
signal.Notify(sig_ch, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM)
|
||||||
|
|
||||||
// Event loop
|
// Event loop
|
||||||
func() {
|
|
||||||
var run bool = true
|
var run bool = true
|
||||||
for run {
|
for run {
|
||||||
// Block until we get a signal.
|
// Block until we get a signal.
|
||||||
|
|
@ -130,7 +129,6 @@ func signalEventLoop() {
|
||||||
l.Warn("Unknown signal")
|
l.Warn("Unknown signal")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// main
|
// main
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue