Use the redis.UniversalClient interface instead of *redis.Client when interacting with go-redis (#1149)

* Use the redis.UniversalClient interface instead of *redis.Client when interacting with go-redis

* Update protocol to v1.2.1
This commit is contained in:
Benjamin Pracht authored and GitHub committed 2022-11-07 17:27:28 -08:00
1 parent 5a8a6d11b2
commit c735668f67
8 files changed
+27 -28

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ type MessageRouter interface {
WriteRoomRTC(ctx context.Context, roomName livekit.RoomName, msg *livekit.RTCNodeMessage) error
}
func CreateRouter(rc *redis.Client, node LocalNode) Router {
func CreateRouter(rc redis.UniversalClient, node LocalNode) Router {
if rc != nil {
return NewRedisRouter(node, rc)
}