fix script for real

This commit is contained in:
Andre Medeiros 2022-07-13 11:40:58 -04:00
parent 12435d7605
commit 69a7e31c37

View file

@ -125,7 +125,7 @@ func evalScript(ctx context.Context, redis *redis.Client) (string, error) {
local key = KEYS[1] .. ":" .. ARGV[i] local key = KEYS[1] .. ":" .. ARGV[i]
if redis.call("exists", key) == 0 then if redis.call("exists", key) == 0 then
redis.call("setex", key, %.0f, 1) redis.call("setex", key, %.0f, 1)
retv[#retv + 1] = ids[i] retv[#retv + 1] = ARGV[i]
end end
end end