Taking interface{} -> any modernize bits (#4204)

This commit is contained in:
Raja Subramanian
2025-12-28 05:22:12 +05:30
committed by GitHub
parent b91cd2e4ea
commit b8ddd0f98c
24 changed files with 135 additions and 57 deletions
+4 -4
View File
@@ -3496,13 +3496,13 @@ func (p *ParticipantImpl) getPublishedTrackBySdpCid(clientId string) types.Media
return nil
}
func (p *ParticipantImpl) DebugInfo() map[string]interface{} {
info := map[string]interface{}{
func (p *ParticipantImpl) DebugInfo() map[string]any {
info := map[string]any{
"ID": p.ID(),
"State": p.State().String(),
}
pendingTrackInfo := make(map[string]interface{})
pendingTrackInfo := make(map[string]any)
p.pendingTracksLock.RLock()
for clientID, pti := range p.pendingTracks {
var trackInfos []string
@@ -3510,7 +3510,7 @@ func (p *ParticipantImpl) DebugInfo() map[string]interface{} {
trackInfos = append(trackInfos, ti.String())
}
pendingTrackInfo[clientID] = map[string]interface{}{
pendingTrackInfo[clientID] = map[string]any{
"TrackInfos": trackInfos,
"Migrated": pti.migrated,
}