Skip to content

Commit

Permalink
retry on unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Sep 25, 2023
1 parent 9087b5d commit a14c6f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rpc/egress_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a14c6f2

Please sign in to comment.