mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 14:16:47 +00:00
Add a created field to the apn retry hash info, increase max interval
This commit is contained in:
1 parent
8277c74c5b
commit
afa674e2ea
2 files changed
+6
-1
No files matched your search
@@ -36,7 +36,11 @@ local getNextInterval = function(interval)
|
||||
return 600000
|
||||
end
|
||||
|
||||
return 1800000
|
||||
if interval < 1800000 then
|
||||
return 1800000
|
||||
end
|
||||
|
||||
return 3600000
|
||||
end
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
-- keys: pending (KEYS[1]), user (KEYS[2])
|
||||
-- args: timestamp (ARGV[1]), interval (ARGV[2]), account (ARGV[3]), device (ARGV[4])
|
||||
|
||||
redis.call("HSET", KEYS[2], "created", ARGV[1])
|
||||
redis.call("HSET", KEYS[2], "interval", ARGV[2])
|
||||
redis.call("HSET", KEYS[2], "account", ARGV[3])
|
||||
redis.call("HSET", KEYS[2], "device", ARGV[4])
|
||||
|
||||
Reference in new issue
Block a user