fix participant APIs when using LocalRouter (#67)

This commit is contained in:
David Zhao
2021-07-22 11:06:23 -07:00
committed by GitHub
parent d7be9096c6
commit 834dce543b
4 changed files with 34 additions and 52 deletions
+2 -2
View File
@@ -139,7 +139,7 @@ func (r *RedisRouter) StartParticipantSignal(roomName string, pi ParticipantInit
// create a new connection id
connectionId = utils.NewGuid("CO_")
pKey := participantKey(roomName, pi.Identity)
pKey := ParticipantKey(roomName, pi.Identity)
// map signal & rtc nodes
if err = r.setParticipantSignalNode(connectionId, r.currentNode.Id); err != nil {
@@ -172,7 +172,7 @@ func (r *RedisRouter) StartParticipantSignal(roomName string, pi ParticipantInit
}
func (r *RedisRouter) CreateRTCSink(roomName, identity string) (MessageSink, error) {
pkey := participantKey(roomName, identity)
pkey := ParticipantKey(roomName, identity)
rtcNode, err := r.getParticipantRTCNode(pkey)
if err != nil {
return nil, err