run.go: make use of the ok chan
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2023-07-19 21:51:05 +02:00
parent 092a8c15d1
commit c1e23847a8
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

4
run.go
View File

@ -205,12 +205,12 @@ func run() error { //nolint:gocognit
if err := e.Start(address); err != nil && err != http.ErrServerClosed {
log.Error("troubles running the server, bailing...", "error", err)
started <- err
ok <- err
return
}
started <- nil
ok <- nil
}(started)
quit := make(chan os.Signal, 1)