From 2eec45dea8df25e1365e966034946a008c44ea0b Mon Sep 17 00:00:00 2001 From: David Colburn Date: Mon, 23 Sep 2024 17:45:10 -0700 Subject: [PATCH] avoid scenario where node will never become healthy again --- pkg/info/io.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/info/io.go b/pkg/info/io.go index 561a7de5..3e0141c4 100644 --- a/pkg/info/io.go +++ b/pkg/info/io.go @@ -100,18 +100,14 @@ func (c *ioClient) CreateEgress(ctx context.Context, info *livekit.EgressInfo) c if err != nil { logger.Errorw("failed to create egress", err) - if errors.Is(err, psrpc.ErrRequestTimedOut) && c.healthy.Swap(false) { - logger.Infow("io connection unhealthy") - } errChan <- err return - } else if !c.healthy.Swap(true) { - logger.Infow("io connection restored") } if e.pending != nil { c.updates <- e.pending } + errChan <- nil }()