set participant node for redis router in signal service (#1584)

This commit is contained in:
Paul Wells
2023-04-05 16:08:25 -07:00
committed by GitHub
parent 234f7ea5cb
commit 6b0cb33c53
5 changed files with 43 additions and 25 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import (
"github.com/livekit/protocol/livekit"
)
func participantKeyLegacy(roomName livekit.RoomName, identity livekit.ParticipantIdentity) livekit.ParticipantKey {
func ParticipantKeyLegacy(roomName livekit.RoomName, identity livekit.ParticipantIdentity) livekit.ParticipantKey {
return livekit.ParticipantKey(string(roomName) + "|" + string(identity))
}
@@ -25,7 +25,7 @@ func parseParticipantKeyLegacy(pkey livekit.ParticipantKey) (roomName livekit.Ro
return
}
func participantKey(roomName livekit.RoomName, identity livekit.ParticipantIdentity) livekit.ParticipantKey {
func ParticipantKey(roomName livekit.RoomName, identity livekit.ParticipantIdentity) livekit.ParticipantKey {
return livekit.ParticipantKey(encode(string(roomName), string(identity)))
}