Skip to content

Commit

Permalink
add error code to egress info
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed May 10, 2024
1 parent 93a26f4 commit 5b67fdf
Show file tree
Hide file tree
Showing 25 changed files with 475 additions and 461 deletions.
8 changes: 5 additions & 3 deletions egress/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

package egress

import "errors"
import (
"github.com/livekit/psrpc"
)

var (
ErrNoResponse = errors.New("no response from egress service")
ErrEgressTimedOut = errors.New("egress timed out")
ErrNoResponse = psrpc.NewErrorf(psrpc.Unavailable, "no response from egress service")
ErrEgressTimedOut = psrpc.NewErrorf(psrpc.DeadlineExceeded, "egress timed out")
)
4 changes: 2 additions & 2 deletions infra/link.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion infra/link_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions livekit/livekit_agent.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions livekit/livekit_analytics.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_analytics_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

474 changes: 242 additions & 232 deletions livekit/livekit_egress.pb.go

Large diffs are not rendered by default.

371 changes: 186 additions & 185 deletions livekit/livekit_egress.twirp.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions livekit/livekit_ingress.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions livekit/livekit_internal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions livekit/livekit_models.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions livekit/livekit_room.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions livekit/livekit_rtc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions livekit/livekit_sip.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions livekit/livekit_webhook.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion protobufs/livekit_egress.proto
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ message EgressInfo {
int64 updated_at = 18;
string details = 21;
string error = 9;
int32 error_code = 22;
oneof request {
RoomCompositeEgressRequest room_composite = 4;
WebEgressRequest web = 14;
Expand All @@ -346,7 +347,7 @@ message EgressInfo {
repeated SegmentsInfo segment_results = 17;
repeated ImagesInfo image_results = 20;

// next ID: 22
// next ID: 23
}

message StreamInfoList {
Expand Down
4 changes: 2 additions & 2 deletions rpc/agent.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/egress.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/ingress.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/io.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/keepalive.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/participant.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/room.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/signal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/sip.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b67fdf

Please sign in to comment.