mirror of
https://github.com/livekit/livekit.git
synced 2026-10-24 02:02:55 +00:00
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:
1 parent
5a8a6d11b2
commit
c735668f67
8 files changed
+27
-28
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user