mirror of
https://github.com/acaloiaro/caddy-incus-upstreams
synced 2026-07-21 10:12:24 +00:00
fix: just catch error directly
This commit is contained in:
parent
417f44bc78
commit
0bc52497ef
1 changed files with 1 additions and 3 deletions
|
|
@ -258,9 +258,7 @@ func (u *Upstreams) keepUpdated(ctx caddy.Context, conn incus.InstanceServer) {
|
|||
ctx.Logger().Error("event listener handler setup error", zap.Error(err))
|
||||
}
|
||||
|
||||
chError := make(chan error, 1)
|
||||
chError <- listener.Wait()
|
||||
if chError != nil {
|
||||
if err := listener.Wait(); err != nil {
|
||||
ctx.Logger().Error("event listener wait error", zap.Error(err))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue