1
0
Fork 0
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:
Henrik Hautakoski 2023-02-02 18:19:53 +01:00
parent fba9402584
commit 9456b8acbb
No known key found for this signature in database
GPG key ID: 217490840C18A5D9

View file

@ -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