mirror of
https://github.com/livekit/livekit.git
synced 2026-08-28 23:01:19 +00:00
compute agent dispatch affinity from target load (#4442)
* compute agent dispatch affinity from target load * fix test config
This commit is contained in:
@@ -40,7 +40,12 @@ type TestServer struct {
|
||||
func NewTestServer(bus psrpc.MessageBus) *TestServer {
|
||||
localNode, _ := routing.NewLocalNode(nil)
|
||||
return NewTestServerWithService(must.Get(service.NewAgentService(
|
||||
&config.Config{Region: "test"},
|
||||
&config.Config{
|
||||
Region: "test",
|
||||
Agents: agent.Config{
|
||||
TargetLoad: agent.DefaultTargetLoad,
|
||||
},
|
||||
},
|
||||
localNode,
|
||||
bus,
|
||||
auth.NewSimpleKeyProvider("test", "verysecretsecret"),
|
||||
|
||||
Reference in New Issue
Block a user