mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:21:04 +08:00
DEV: Fix redis.sadd
warnings (#23244)
``` Redis#sadd will always return an Integer in Redis 5.0.0. Use Redis#sadd? instead ```
This commit is contained in:
@ -132,7 +132,7 @@ RSpec.describe BackupRestore::SystemInterface do
|
||||
key = "#{hostname}:#{pid}"
|
||||
process = { pid: pid, hostname: hostname }
|
||||
|
||||
conn.sadd("processes", key)
|
||||
conn.sadd?("processes", key)
|
||||
conn.hmset(key, "info", Sidekiq.dump_json(process))
|
||||
|
||||
data =
|
||||
|
Reference in New Issue
Block a user