Agents enabled check (#2227)
* agents enabled check * participant -> publisher * nil check client * add NumConnections * add lock around agent check * do not launch agents against other agents * regen * don't need atomic anymore * update protocol
This commit is contained in:
@@ -26,18 +26,6 @@ import (
|
||||
"github.com/livekit/protocol/utils"
|
||||
)
|
||||
|
||||
type agentClient struct {
|
||||
s *AgentService
|
||||
}
|
||||
|
||||
func NewAgentClient(s *AgentService) rtc.AgentClient {
|
||||
return &agentClient{s}
|
||||
}
|
||||
|
||||
func (c *agentClient) JobRequest(ctx context.Context, job *livekit.Job) {
|
||||
_, _ = c.s.JobRequest(ctx, job)
|
||||
}
|
||||
|
||||
type IOClient interface {
|
||||
CreateEgress(ctx context.Context, info *livekit.EgressInfo) (*emptypb.Empty, error)
|
||||
GetEgress(ctx context.Context, req *rpc.GetEgressRequest) (*livekit.EgressInfo, error)
|
||||
|
||||
Reference in New Issue
Block a user