Taking interface{} -> any modernize bits (#4204)
This commit is contained in:
@@ -115,7 +115,7 @@ func NewLivekitServer(conf *config.Config,
|
||||
middlewares = append(middlewares, NewAPIKeyAuthMiddleware(keyProvider))
|
||||
}
|
||||
|
||||
serverOptions := []interface{}{
|
||||
serverOptions := []any{
|
||||
twirp.WithServerHooks(twirp.ChainHooks(
|
||||
TwirpLogger(),
|
||||
TwirpRequestStatusReporter(),
|
||||
@@ -236,7 +236,7 @@ func (s *LivekitServer) Start() error {
|
||||
}
|
||||
}
|
||||
|
||||
values := []interface{}{
|
||||
values := []any{
|
||||
"portHttp", s.config.Port,
|
||||
"nodeID", s.currentNode.NodeID(),
|
||||
"nodeIP", s.currentNode.NodeIP(),
|
||||
@@ -347,7 +347,7 @@ func (s *LivekitServer) debugGoroutines(w http.ResponseWriter, _ *http.Request)
|
||||
|
||||
func (s *LivekitServer) debugInfo(w http.ResponseWriter, _ *http.Request) {
|
||||
s.roomManager.lock.RLock()
|
||||
info := make([]map[string]interface{}, 0, len(s.roomManager.rooms))
|
||||
info := make([]map[string]any, 0, len(s.roomManager.rooms))
|
||||
for _, room := range s.roomManager.rooms {
|
||||
info = append(info, room.DebugInfo())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user