set participant node for redis router in signal service (#1584)
This commit is contained in:
@@ -77,6 +77,17 @@ func NewDefaultSignalServer(
|
||||
responseSink routing.MessageSink,
|
||||
) error {
|
||||
prometheus.IncrementParticipantRtcInit(1)
|
||||
|
||||
if rr, ok := router.(*routing.RedisRouter); ok {
|
||||
pKey := routing.ParticipantKeyLegacy(roomName, pi.Identity)
|
||||
pKeyB62 := routing.ParticipantKey(roomName, pi.Identity)
|
||||
|
||||
// RTC session should start on this node
|
||||
if err := rr.SetParticipantRTCNode(pKey, pKeyB62, currentNode.Id); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return roomManager.StartSession(ctx, roomName, pi, requestSource, responseSink)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user