protocol 0.8 (#95)

* protocol 0.8

* merge new selector
This commit is contained in:
David Colburn
2021-08-27 13:16:33 -05:00
committed by GitHub
parent c437152e2b
commit 8a44fad307
57 changed files with 89 additions and 199 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package routing
import (
livekit "github.com/livekit/livekit-server/proto"
livekit "github.com/livekit/protocol/proto"
"github.com/thoas/go-funk"
)
@@ -15,7 +15,7 @@ func (s *SystemLoadSelector) SelectNode(nodes []*livekit.Node, room *livekit.Roo
return nil, ErrNoAvailableNodes
}
nodesLowLoad := []*livekit.Node{}
nodesLowLoad := make([]*livekit.Node, 0)
for _, node := range nodes {
numCpus := node.Stats.NumCpus
if numCpus == 0 {