Consolidate operations on LocalNode. (#3140)

This commit is contained in:
Raja Subramanian
2024-10-25 18:57:23 +05:30
committed by GitHub
parent d341ee1ce8
commit 49b75e94a6
15 changed files with 179 additions and 93 deletions
+3 -3
View File
@@ -172,7 +172,7 @@ func NewLivekitServer(conf *config.Config,
}
func (s *LivekitServer) Node() *livekit.Node {
return s.currentNode
return s.currentNode.Clone()
}
func (s *LivekitServer) HTTPPort() int {
@@ -232,8 +232,8 @@ func (s *LivekitServer) Start() error {
values := []interface{}{
"portHttp", s.config.Port,
"nodeID", s.currentNode.Id,
"nodeIP", s.currentNode.Ip,
"nodeID", s.currentNode.NodeID(),
"nodeIP", s.currentNode.NodeIP(),
"version", version.Version,
}
if s.config.BindAddresses != nil {