From a14c6f22c9649c5637c90e0bf3b0383e347e2e78 Mon Sep 17 00:00:00 2001 From: David Colburn Date: Mon, 25 Sep 2023 12:53:06 -0700 Subject: [PATCH] retry on unavailable --- rpc/egress_client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpc/egress_client.go b/rpc/egress_client.go index 2ceab134..1ba52cd5 100644 --- a/rpc/egress_client.go +++ b/rpc/egress_client.go @@ -50,7 +50,9 @@ func NewEgressClient(nodeID livekit.NodeID, bus psrpc.MessageBus) (EgressClient, if !errors.As(err, &e) { return true } - return e.Code() == psrpc.DeadlineExceeded || e.Code() == psrpc.ResourceExhausted + return e.Code() == psrpc.DeadlineExceeded || + e.Code() == psrpc.ResourceExhausted || + e.Code() == psrpc.Unavailable }, })) if err != nil {