type aliases -> type definitions (#312)

* type alias -> type definition

* participantSid -> participantID in a comment

* Update protocol
This commit is contained in:
Raja Subramanian
2022-01-03 12:43:58 +05:30
committed by GitHub
parent d5c955d11f
commit 995c1e8676
39 changed files with 490 additions and 482 deletions
+2 -2
View File
@@ -176,7 +176,7 @@ func (p *RedisRoomStore) StoreParticipant(_ context.Context, roomName livekit.Ro
func (p *RedisRoomStore) LoadParticipant(_ context.Context, roomName livekit.RoomName, identity livekit.ParticipantIdentity) (*livekit.ParticipantInfo, error) {
key := RoomParticipantsPrefix + string(roomName)
data, err := p.rc.HGet(p.ctx, key, identity).Result()
data, err := p.rc.HGet(p.ctx, key, string(identity)).Result()
if err == redis.Nil {
return nil, ErrParticipantNotFound
} else if err != nil {
@@ -213,5 +213,5 @@ func (p *RedisRoomStore) ListParticipants(_ context.Context, roomName livekit.Ro
func (p *RedisRoomStore) DeleteParticipant(_ context.Context, roomName livekit.RoomName, identity livekit.ParticipantIdentity) error {
key := RoomParticipantsPrefix + string(roomName)
return p.rc.HDel(p.ctx, key, identity).Err()
return p.rc.HDel(p.ctx, key, string(identity)).Err()
}