clean up WriteRoomRTC (#378)

* clean up WriteRoomRTC

* regenerate
This commit is contained in:
David Colburn
2022-01-26 19:12:39 -07:00
committed by GitHub
parent 69116a57fc
commit 32825d2666
5 changed files with 23 additions and 35 deletions
+2 -2
View File
@@ -119,8 +119,8 @@ func (r *LocalRouter) WriteParticipantRTC(_ context.Context, roomName livekit.Ro
return r.writeRTCMessage(r.rtcMessageChan, msg)
}
func (r *LocalRouter) WriteRoomRTC(ctx context.Context, roomName livekit.RoomName, identity livekit.ParticipantIdentity, msg *livekit.RTCNodeMessage) error {
msg.ParticipantKey = participantKey(roomName, identity)
func (r *LocalRouter) WriteRoomRTC(ctx context.Context, roomName livekit.RoomName, msg *livekit.RTCNodeMessage) error {
msg.ParticipantKey = participantKey(roomName, "")
return r.WriteNodeRTC(ctx, r.currentNode.Id, msg)
}