run.go: make use of the ok chan
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
092a8c15d1
commit
c1e23847a8
4
run.go
4
run.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user