FIX: Allow PresenceChannel to work on Redis 6.0 (#14178)

The `ZRANGE ... BYSCORE` syntax was only added in 6.2. We can use the older `ZRANGEBYSCORE` instead
This commit is contained in:
David Taylor 2021-08-27 18:55:54 +01:00 committed by GitHub
parent db0429da1f
commit 01e2836071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ class PresenceChannel
local time = ARGV[2] local time = ARGV[2]
local mutex_value = ARGV[3] local mutex_value = ARGV[3]
local expire = redis.call('ZRANGE', zlist_key, '-inf', time, 'BYSCORE') local expire = redis.call('ZRANGEBYSCORE', zlist_key, '-inf', time)
local has_mutex = false local has_mutex = false