accept any participant type source to BroadcastMetricsForRoom (#3063)

This commit is contained in:
Paul Wells
2024-10-03 05:51:02 -07:00
committed by GitHub
parent 119e11e191
commit c9d2552cb3
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1795,7 +1795,7 @@ func BroadcastDataPacketForRoom(r types.Room, source types.LocalParticipant, kin
})
}
func BroadcastMetricsForRoom(r types.Room, source types.LocalParticipant, dp *livekit.DataPacket, logger logger.Logger) {
func BroadcastMetricsForRoom(r types.Room, source types.Participant, dp *livekit.DataPacket, logger logger.Logger) {
switch payload := dp.Value.(type) {
case *livekit.DataPacket_Metrics:
utils.ParallelExec(r.GetLocalParticipants(), dataForwardLoadBalanceThreshold, 1, func(op types.LocalParticipant) {