Closed samhza closed 3 years ago
https://github.com/elsaland/elsa/blob/0819922b24f01849de855ff2852f2f28631fc1cb/core/ops/serve.go#L66 This call to wg.Wait is unreachable because the for loop preceding it never breaks. As a fix, a chan error should be used instead of a sync.WaitGroup so the error from http.ListenAndServe can be returned as well (see #75.)
wg.Wait
for
chan error
sync.WaitGroup
http.ListenAndServe
Fixed in #78. Can we close this @samhza?
https://github.com/elsaland/elsa/blob/0819922b24f01849de855ff2852f2f28631fc1cb/core/ops/serve.go#L66 This call to
wg.Wait
is unreachable because thefor
loop preceding it never breaks. As a fix, achan error
should be used instead of async.WaitGroup
so the error fromhttp.ListenAndServe
can be returned as well (see #75.)