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:
David Colburn
2023-11-07 19:19:07 -08:00
committed by GitHub
parent 302facc60d
commit 57643a42ed
15 changed files with 385 additions and 91 deletions
+2 -1
View File
@@ -30,6 +30,7 @@ import (
"github.com/livekit/livekit-server/pkg/clientconfiguration"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/livekit-server/pkg/rtc"
"github.com/livekit/livekit-server/pkg/telemetry"
"github.com/livekit/livekit-server/pkg/telemetry/prometheus"
"github.com/livekit/protocol/auth"
@@ -73,7 +74,7 @@ func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*Live
NewRoomService,
NewRTCService,
NewAgentService,
NewAgentClient,
rtc.NewAgentClient,
getSignalRelayConfig,
NewDefaultSignalServer,
routing.NewSignalClient,