fix: just catch error directly
This commit is contained in:
parent
417f44bc78
commit
0bc52497ef
@ -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…
x
Reference in New Issue
Block a user