type definition of room name (#311)

* WIP commit

* update protocol

* Fixing a test and catching one place where casting was missed

* Fix one more spot which need conversion from livekit.RoomName -> string

* do not covert list
This commit is contained in:
Raja Subramanian
2022-01-02 16:49:16 +05:30
committed by GitHub
parent 66a1ffe414
commit 3a9009ae12
21 changed files with 208 additions and 208 deletions
+3 -3
View File
@@ -66,7 +66,7 @@ func (s *StatsWorker) getOrCreateOutgoingStatsIfEmpty(trackID livekit.TrackID) *
Kind: livekit.StreamType_DOWNSTREAM,
RoomId: s.roomID,
ParticipantId: s.participantID,
RoomName: s.roomName,
RoomName: string(s.roomName),
}}
}
return s.outgoingPerTrack[trackID]
@@ -78,7 +78,7 @@ func (s *StatsWorker) getOrCreateIncomingStatsIfEmpty(trackID livekit.TrackID) *
Kind: livekit.StreamType_UPSTREAM,
RoomId: s.roomID,
ParticipantId: s.participantID,
RoomName: s.roomName,
RoomName: string(s.roomName),
}}
}
return s.incomingPerTrack[trackID]
@@ -170,7 +170,7 @@ func (s *StatsWorker) update(stats *Stats, ts *timestamppb.Timestamp) *livekit.A
Kind: next.Kind,
RoomId: s.roomID,
ParticipantId: s.participantID,
RoomName: s.roomName,
RoomName: string(s.roomName),
}
next.TimeStamp = ts