always use multi-node when Redis is provided, removed config

This commit is contained in:
David Zhao
2021-01-30 13:29:31 -08:00
parent 5ce52b6a30
commit 1a8e26031f
5 changed files with 12 additions and 37 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ func createMultiNodeServer(nodeId string, port uint32) *service.LivekitServer {
panic(fmt.Sprintf("could not create config: %v", err))
}
conf.Port = port
conf.MultiNode = true
conf.Redis.Address = "localhost:6379"
currentNode, err := routing.NewLocalNode(conf)
currentNode.Id = nodeId