mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 19:55:41 +00:00
Ensure we create en Egress ID with PsRPC (#1273)
This commit is contained in:
@@ -15,6 +15,7 @@ import (
|
||||
"github.com/livekit/protocol/egress"
|
||||
"github.com/livekit/protocol/livekit"
|
||||
"github.com/livekit/protocol/logger"
|
||||
"github.com/livekit/protocol/utils"
|
||||
|
||||
"github.com/livekit/livekit-server/pkg/telemetry"
|
||||
)
|
||||
@@ -183,6 +184,11 @@ func (s *egressLauncher) StartEgress(ctx context.Context, req *livekit.StartEgre
|
||||
var info *livekit.EgressInfo
|
||||
var err error
|
||||
|
||||
// Ensure we have a Egress ID
|
||||
if req.EgressId == "" {
|
||||
req.EgressId = utils.NewGuid(utils.EgressPrefix)
|
||||
}
|
||||
|
||||
if s.psrpcClient != nil {
|
||||
info, err = s.psrpcClient.StartEgress(ctx, req)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user